seriesoftubes/src/game/80-simulation
Antoine 1edf0abb54
Routing core made once, list orders kept, and Auto-TE's detour searches cut: same routing, much less work
The game plays exactly as before.

* The core of compute() (rankPass, directPass, sendGroup, send, push, carry, altPath) is ROUTE in 29-route-core.js,
  built once by routeCore(): made inside compute() they were new functions every call and V8 threw away their code.
  Exits are read by number from typed columns (USED, CAPX, CIX, HPX, VISX), each list is an object of one shape.
* The route cache keeps, for each list and source city, the order routing tries it (xOrder()); a list whose exits,
  cities and preferences are unchanged on the same graph keeps its orders when other exits change (rcExitKeep()).
* Auto-TE: pairs with no detour are marked (TEF), exits that cannot help are skipped (dud()), one failed search
  answers the next ones, dijkstraTo() searches in arrays kept between calls, teSearch() runs on the graph as flat
  arrays and picks up where the last search from the same POP stopped.
* The PNI/IX tie-break (#298) reaches the core.

Tests: route-cache, routing-reference, speed (the fast core against the plain path, Auto-TE on crowded meshes with
POPs outside the core, picked-up searches counted).
2026-11-07 23:51:35 +01:00
..
10-dijkstra.js Routing core made once, list orders kept, and Auto-TE's detour searches cut: same routing, much less work 2026-11-07 23:51:35 +01:00
20-routescript.js PNIs and IX ports are both peering: traffic leaves at the nearest one (#298) 2026-11-06 06:31:21 +00:00
25-ddos-flood.js DDoS rework (#242): world-sized floods on customers, spread over every port, RTBH per target, Flowspec rule budgets, magnet scrubbing, new NOC card 2026-10-31 12:20:14 +01:00
25-direct-egress.js Prefer keeps the say at its own POP only, and the direct ranks stop slowing the game day 2026-11-01 20:07:23 +11:00
28-route-worker.js A slow phone gives a day longer slices between frames 2026-11-06 22:48:52 +01:00
29-route-cache.js Routing core made once, list orders kept, and Auto-TE's detour searches cut: same routing, much less work 2026-11-07 23:51:35 +01:00
29-route-core.js Routing core made once, list orders kept, and Auto-TE's detour searches cut: same routing, much less work 2026-11-07 23:51:35 +01:00
30-compute.js Routing core made once, list orders kept, and Auto-TE's detour searches cut: same routing, much less work 2026-11-07 23:51:35 +01:00
35-pie-paths.js Pie in the Sky: the Founder's antics make markets jumpy, then it wears off 2026-11-06 09:58:00 +01:00
40-billing.js Fabric ports at 10G, 100G or 400G, in LAGs; fabric customers only when they fit 2026-11-06 06:52:48 +01:00
50-sanitize.js Lambda Bazaar: a capacity market for your dark fiber 2026-11-07 13:34:41 +01:00
60-requirements.js Lambda Bazaar: a capacity market for your dark fiber 2026-11-07 13:34:41 +01:00
70-customers-and-events.js Pie in the Sky: routing through orbit 2026-11-06 09:57:39 +01:00
75-customer-lifecycle.js The sales desk answers renewal haggles, each salesperson their way 2026-11-06 20:56:50 +01:00
80-geography-and-latency.js Fiber over land inside one country; no circuits between the Koreas 2026-11-04 12:46:37 +00:00
90-sites-and-service.js Backbone technology: plain IGP, LDP, RSVP-TE, SR-MPLS, SRv6; two new RSVP-TE routers 2026-10-31 08:27:31 +01:00