Faster days on big networks: look fiber customers up by link id
compute(), the daily mood check and new alien-wave/fiber-pair offers asked S.links.find() or S.biz.filter() once per customer or per link. On a save with 2,950 links and 18,000 customers (16,000 alien waves) that was ~150 ms per compute, ~250 ms more per day, and ~650 ms when a wave offer spawned. linkIds() and fiberUse() build the lookups in one pass; fiberOk, bizSf, soldSlots, freeCh and pairFree take them optionally, and give the same answers as before (first link with the id wins, sums in S.biz order). Player save (202 POPs, 2,958 links, 17,967 customers), median of 15: compute 323 -> 124 ms, dayTick 545 -> 133 ms, after 356 -> 149 ms. Big-network fixture: unchanged. Routing results identical to main.
This commit is contained in:
parent
5158491b79
commit
456062284f
6 changed files with 37 additions and 8 deletions
|
|
@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- Big networks with thousands of fiber customers no longer stall: each game day and each action is about two to three times faster, and new alien-wave offers no longer freeze the game for a moment.
|
||||
- The game starts faster in Italian, Portuguese and French: their translations are about 40% smaller to download.
|
||||
|
||||
## [1.34.0] — 2026-10-27
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue