perf(v4): the lookup keeps its key in B; POST sends one line per suite, not three (#189)
Captain Bob's "Find the TCG cost first", continued. aarch64 still ran out of its 570 s at 281972ab
(logs/20261114-133155, STOPPED); amd64 passed in 253 s (logs/20261114-132732).
- (LOOKUP): the count-and-first-character key in register B while the entries are walked, and the
xt kept on the stack until an entry passes it -- about 19 opcodes for an entry that cannot be the
word, from 28. The answer is the same.
- POST: a suite begins with one line, DECIMAL FORTH DEFINITIONS FORGET (POST); its mark is made by
the state line of its first case run (a skipped kernel case passes it on).
mesh-boot: 15.7 s -> 12.2 s (37.7 s before this work), POST 990 of 990. make -C v4 test: all passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -234,11 +234,12 @@ set HDR-NFA here ", (TELL-FORGOTTEN) #id, #, 0 #, HDR-NFA #, HDR-LINK set
|
||||
HDONE: drop
|
||||
0 (D)+4 a! ! \ not yet on to FORTH
|
||||
(D)+1 a! @ dup 1 + C@ 2* 2* 2* 2* 2* 2* 2* 2* SWAP C@ + (D)+5 a! !
|
||||
(D)+5 b! \ B stays on it while the entries are walked
|
||||
CONTEXT a! @ a! @
|
||||
L: if END
|
||||
dup (D)+2 a! !
|
||||
-2 + a! @ a! @ 65535 and (D)+5 a! @ xor if PRE drop jump OLDER
|
||||
PRE: drop \ its count and first character are the string's: is it visible,
|
||||
dup -2 + a! @ a! @ 65535 and @b xor if PRE
|
||||
drop -1 + a! @ jump L \ not it: the entry before
|
||||
PRE: drop (D)+2 a! ! \ its count and first character are the string's: is it visible,
|
||||
(D)+2 a! @ -3 + a! @ 2 and if VISIBLE drop jump OLDER
|
||||
VISIBLE: drop \ and is it all the same?
|
||||
(D)+2 a! @ -2 + a! @ 4* (D) a! ! \ its name
|
||||
|
||||
Reference in New Issue
Block a user