seriesoftubes/tests
Frederic Jung a887b65a2f Make big networks fast: routing, panels and map drawing
A network with a hundred POPs and a thousand peering ports froze the game for
most of a second every day and after every click, because routing checked all
~1,800 exits for each of ~14,000 flows. Now:

- compute(): exits are asked once per network which networks they reach, each
  flow scans only those, and the first ECMP group is found without sorting. The
  graph runs on city indices with a typed-array Dijkstra (same heap moves, same
  ties), routers and per-link traffic are kept in typed arrays, the diverse-path
  check reuses one live-link graph, and R.ef is put together when a link is read.
  Results are bit-identical to before.
- Panels and the NOC dashboard are patched in place (morph) instead of being
  rebuilt, so the browser no longer restyles 1,500 rows every tick. Buttons whose
  action changed are swapped out, keeping #44's tap protection.
- The Networks tab works out each IX port's sessions once instead of once per
  network.
- draw() reuses screen-point buffers, a per-frame pair index and cached label
  widths, strokes the dotted fiber line on the path it already has, and uses
  native roundRect: about a third fewer canvas calls per frame, same output.
2026-10-26 00:03:05 +01:00
..
build.test.js Fix map wrap, touch and keyboard input; harden build and release workflow; docs 2026-10-23 17:56:34 +02:00
game.test.js Stricter credit, revenue share on big loans, weird new lenders and conditions 2026-10-25 15:50:28 +01:00
harness.js Add Italian translation and a language switch 2026-10-24 21:52:27 +02:00
i18n.test.js Add Korea's sender-pays market, Sparkly Seabone as a Tier 1, and release 1.12.0 2026-10-24 22:39:36 +02:00
issues.test.js Benelux: Brussels, Oostkamp and Bettembourg (#79) 2026-10-25 20:44:50 +01:00
levels.test.js Customer levels 5 to 13 2026-10-25 16:40:17 +01:00
modes.test.js DKNOG gets its own evening 2026-10-25 18:08:29 +01:00
peering.test.js Merge pull request #18 from NickBouwhuis/add-fries-ix 2026-10-24 21:14:23 +02:00
persist.test.js Shorter in-app release notes with a link to GitHub, one release per hour at most 2026-10-25 15:38:49 +01:00
regions.test.js Add Munich with the Brezn-IX 2026-10-25 21:11:55 +01:00
services.test.js Add customers that connect over interconnection fabrics (1.16.0) 2026-10-25 06:29:33 +01:00
speed.test.js Make big networks fast: routing, panels and map drawing 2026-10-26 00:03:05 +01:00