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

@ -2156,7 +2156,7 @@
"help.want_to_know_how_it_really":"Quer saber como funciona de verdade?",
"help.what_a_wave_costs_depends_on":"Quanto custa uma wave depende de onde ela passa. A Europa é barata (muita fibra concorrendo), a América do Norte é mediana, a Ásia e a América do Sul são mais caras, e qualquer coisa indo para a África custa várias vezes mais. Cada rota tem seu preço de mercado, e novos aluguéis ficam uns 8% mais baratos a cada ano, então esperar pode compensar. O planejador de links diz como uma rota se compara.",
"help.you_built_a_cartoon_internet_now":"Você construiu uma internet de desenho animado. Agora veja como a de verdade funciona:",
"help.you_pay_a_bigger_network_per":"Você paga uma rede maior por Gbps e ela entrega seu tráfego em qualquer lugar. Fácil, alcance total, nunca de graça.",
"help.you_pay_a_bigger_network_per":"Você paga uma rede maior por Gbps e ela entrega seu tráfego em qualquer lugar. Fácil, alcance total, nunca de graça. A porta de um carrier recebe o tráfego destinado a esse carrier. No BGP de verdade isso vale a partir de todo POP, porque o caminho AS mais curto vence a distância IGP; aqui é o botão Trazer para cá de uma porta, e Porta mais próxima é o padrão.",
"help.you_re_a_tier_1":"Você é <span style=\"color:var(--me)\">Tier 1</span>!",
"help.your_fiber_links_are_leased_waves":"Seus links de fibra são waves alugadas a uma mensalidade fixa. Mais longa e maior custa mais (10G → 6.4T), e subsea custa 1,8×.",
"helpers.y_y_mon_d":"A{y} · {d} {mon}",