perf(v4): POST at a boot's pace -- v3's per-suite put-back, and a lookup that rejects by two bytes (#189)
Ruled (Captain Bob, 2026-11-14): "Find the TCG cost first". v3's whole POST took the amd64
accept from about 3 m 15 s to 8 m 45 s, and aarch64 past its 570 s (logs/20261114-091651,
STOPPED, committed). Profiled on the host (gprof, mesh-boot): 87% of the time in POST's
lines, about 280,000 opcodes a line -- the interpreter's dictionary lookup.
- POST puts the dictionary back before each of v3's suites, as v3's run_test_suite does
("to remove test-created words"): a mark, (POST), forgotten and made again
(V4_POST_SUITE). Only the dictionary: SCR, BASE and the rest stay as the cases left them.
- (LOOKUP) tries each entry by its count and first character first -- one fetch of the
name's first cell, masked -- and only then its hidden flag and the whole name. The answer
is the same; an entry that cannot be it costs a few opcodes, not some forty.
mesh-boot: 37.7 s -> 15.7 s, POST 990 of 990. make -C v4 test: all v4 tests passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -163,3 +163,7 @@ with no kernel has none of them (`V4_POST_KERNEL`, `v4_post_host.kernel`). The t
|
||||
`DATA_STRUCTURES.stack_min_max` (VARIABLE run inside a definition took '42' for its name, and hid the number
|
||||
from every case after it) and `COMPLETE_PROGRAMS.array_sum` (`: ARRAY 5 CELLS ALLOT ;` names nothing).
|
||||
- **mkpost cuts no line between a word and the name it takes** (`: T20` cut after the `:` was "Name missing").
|
||||
- **The boot's time (2026-11-14):** at 990 cases the amd64 accept took 8 m 45 s (about 3 m 15 s at 539), and
|
||||
aarch64 ran out of its 570 s in POST (`logs/20261114-091651/aarch64`, STOPPED). The node's doubling is not the
|
||||
cost (host mesh-boot 36 s at 16384 words, 37.7 s at 32768). **Ruled (Captain Bob): "Find the TCG cost
|
||||
first"** -- profile POST under emulation and bring 990 cases under 570 s on all three, before the push.
|
||||
|
||||
Reference in New Issue
Block a user