mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 08:55:22 +01:00
fdbf54ba15
A look around went over the vehicles three times (states, couplers, derailments), and each time looked every vehicle up in the map of known vehicles, up to three times in the derailment pass. On Tomaszewo, with 1142 vehicles, that is several thousand hash lookups a second, mostly cache misses. The vehicles pass now keeps the vehicles it saw with their entries, and the two passes after it go over that list. The vehicles come in the same order and the same records are written; a vehicle is still written the first time it is seen.