Prefer keeps the say at its own POP only, and the direct ranks stop slowing the game day

Review of #205:

- Prefer no longer switches the carrier-direct rule off for the whole network.
  A POP with a Prefer-marked transit port keeps what Prefer says; every other
  POP keeps the rule. compute(), traceroute and the reference loop in the tests
  all use the same per-POP rule, and a new test covers it (New York and Chicago,
  Prefer on one POP's Tell-Ya port).
- dayTick() cost. The harness is neutral (the same page on both sides differs by
  1%), but the cost was real: the four extra rank passes inside compute()'s main
  loop made V8 deoptimise compute() 954 times in 30 game days against 46 on main.
  The direct ranks now run in a small function of their own, in the plain way the
  reference loop does (their lists are one carrier's ports), so the main loop is
  the one main has, and the setup moved out of compute(). 61 deopts instead of 954.
- Italian: "Porta qui" read as "port here" next to "Porta più vicina"; it is
  "Instrada qui" now, and "Ogni POP instrada il traffico..." matches.
- Help text: says that real BGP carries the traffic from every POP (the shorter
  AS path beats IGP distance), that Carry here does that here, and that Nearest
  port is the default. All six languages.
This commit is contained in:
Christopher Hawker 2026-11-01 20:07:23 +11:00
parent b8845413d3
commit eb78d7104e
14 changed files with 77 additions and 23 deletions

View file

@ -2158,7 +2158,7 @@
"help.want_to_know_how_it_really":"Willst du wissen, wie es wirklich funktioniert?",
"help.what_a_wave_costs_depends_on":"Was eine Wave kostet, hängt davon ab, wo sie läuft. Europa ist günstig (viel konkurrierende Glasfaser), Nordamerika Durchschnitt, Asien und Südamerika teurer, und alles nach Afrika kostet ein Mehrfaches. Jede Route hat ihren eigenen Marktpreis, und neue Mieten werden jedes Jahr etwa 8 % günstiger, also kann Warten sich lohnen. Der Link-Planer sagt dir, wie eine Route im Vergleich dasteht.",
"help.you_built_a_cartoon_internet_now":"Du hast ein Cartoon-Internet gebaut. Jetzt schau dir an, wie das echte funktioniert:",
"help.you_pay_a_bigger_network_per":"Du bezahlst ein größeres Netz pro Gbps, und es liefert deinen Traffic überallhin. Einfach, volle Reichweite, nie kostenlos.",
"help.you_pay_a_bigger_network_per":"Du bezahlst ein größeres Netz pro Gbps, und es liefert deinen Traffic überallhin. Einfach, volle Reichweite, nie kostenlos. Der eigene Port eines Carriers nimmt den Traffic, der für diesen Carrier bestimmt ist. Im echten BGP gilt das von jedem POP aus, weil der kürzere AS-Pfad die IGP-Distanz schlägt; hier ist es der Schalter Hierher leiten an einem Port, und Nächster Port ist die Voreinstellung.",
"help.you_re_a_tier_1":"Du bist <span style=\"color:var(--me)\">Tier 1</span>!",
"help.your_fiber_links_are_leased_waves":"Deine Glasfaser-Links sind gemietete Waves zu einer festen Monatsrate. Länger und größer kostet mehr (10G → 6.4T), und Subsea kostet das 1,8-Fache.",
"helpers.y_y_mon_d":"J{y} · {d}. {mon}",