gui: the core script budget carries withScheme's 113 bytes (eachg0 on X)

6055f626e (v0.1.3899) fit the budget at fd9033cbf, but the base moved
under the rebase (a2feeb11a, 4519eea71) and TestCoreScriptBudget read
1264422 against 1264309. withScheme was already cut to one expression
and respellURL's /i flags dropped; nothing on the page has a plugin to
move to, so the budget rises by the 113 bytes over, as the entries
before it did. Run: TestCoreScriptBudget ok on mica.
This commit is contained in:
yetone
2026-11-12 19:51:02 +08:00
parent 6055f626e8
commit 09e2eef0d2
+1 -1
View File
@@ -18,7 +18,7 @@ import (
// `git log -L` of this file.
const (
appScriptBudget = 1_086_267 // app.js: 1,080,614 at 8016205e3, with the 5,653 of room it had
coreScriptBudget = 1_264_309 // every core script at 8016205e3, the old measure 682 over its cap there (#5918); +367 for the model test on a chosen account (tmr11235), no page left to move it to; +151 for the provider menu's "Only on this device" item and its four translations; +458 for Settings › About's Report a problem row and its translations
coreScriptBudget = 1_264_422 // every core script at 8016205e3, the old measure 682 over its cap there (#5918); +367 for the model test on a chosen account (tmr11235), no page left to move it to; +151 for the provider menu's "Only on this device" item and its four translations; +458 for Settings › About's Report a problem row and its translations; +113 for withScheme, the one rule every typed address goes through (eachg0 on X), cut to the shortest form that keeps it whole
)
// codeBytes is how many bytes of b are code: its blank lines, its lines