While playing my game suddenly started taking a long time to save/load. Where it had been almost unnoticeable it was now taking >10 seconds to save. Looking at my save files I immediately discovered my save file size had massively increased from a few megabytes to over 160 megabytes. Inspection of the huge save file showed that the game had at some pointed started massively spamming repeated ObjectEvents causing the huge save file size.
{
"TravelObjectIds": [
"97f696e8-4cc4-4a0f-8e8c-dea03857707f",
"025fd024-90ba-4292-92da-f8c386c229b6",
"8d7f04ea-95d0-44b5-b232-6e43290867e9",
"4733e862-1a16-496c-ac57-8950e68b3a9d"
],
"EventKey": "vesselSOIEntered",
"UT": 174074925.44581786,
"FlightReportArgs": [
"Laythe",
"Jool"
]
},
{
"TravelObjectIds": [
"97f696e8-4cc4-4a0f-8e8c-dea03857707f",
"025fd024-90ba-4292-92da-f8c386c229b6",
"8d7f04ea-95d0-44b5-b232-6e43290867e9",
"4733e862-1a16-496c-ac57-8950e68b3a9d"
],
"EventKey": "vesselSOIEntered",
"UT": 174074925.44581786,
"FlightReportArgs": [
"Laythe",
"Jool"
]
},
{
"TravelObjectIds": [
"97f696e8-4cc4-4a0f-8e8c-dea03857707f",
"025fd024-90ba-4292-92da-f8c386c229b6",
"8d7f04ea-95d0-44b5-b232-6e43290867e9",
"4733e862-1a16-496c-ac57-8950e68b3a9d"
],
"EventKey": "vesselSOIEntered",
"UT": 174074925.44581786,
"FlightReportArgs": [
"Laythe",
"Jool"
]
}
These identical events are repeated 100's of thousands of times. I wrote a python script to remove all the duplicate ObjectEvents, there was 391727 duplicate events in total. After removal of the duplicates file size was reduced from 160MB back down to only 4.8 MB and things performed well again.