18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 08:55:22 +01:00
Files
maszyna/simulation
jerrrrycho fdbf54ba15 perf(blackbox): each vehicle looked up once a look
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.
2026-12-02 07:04:30 +01:00
..