seriesoftubes/site
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
..
i18n Add Munich with the Brezn-IX 2026-10-25 21:11:55 +01:00
images Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
404.html Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
apple-touch-icon.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
CNAME Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
d000727792a2ac2fdaa24ec953ed6d2b.txt Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
favicon.ico Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
favicon.svg Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
icon-192.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
icon-512.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
icon-maskable-512.png Redraw the app icons for home screens 2026-10-24 23:01:04 +02:00
index.html Make big networks fast: routing, panels and map drawing 2026-10-26 00:03:05 +01:00
llms.txt Point players to How the Internet Works 2026-10-24 22:12:38 +02:00
robots.txt Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
site.webmanifest Rework the phone layout and make the game installable 2026-10-24 22:52:55 +02:00
sitemap.xml Series of Tubes 1.0.0 2026-10-23 09:01:39 +02:00
sw.js Rework the phone layout and make the game installable 2026-10-24 22:52:55 +02:00