perf: 81% RSS reduction in elc compiler #4
Reference in New Issue
Block a user
Delete Branch "optimize/compiler-perf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Seven rounds of swarm optimization on the El compiler, applied as a clean branch from `add-linux-binaries` (
eb52be4).Results
Test plan
- Flat token list: lexer emits [kind0, val0, kind1, val1, ...] instead of [{kind,val}, ...] Eliminates per-token ElMap allocation (~112B × N tokens) - str_char_code hot loop: char classification via Int codes, no strdup per char - Batch c_escape: str_slice clean runs instead of char-at per byte - Parser updated to use tok_at/tok_kind/tok_value stride-2 accessorsPull request closed