5de883e9
beads: close 4ql (ibuf encoder not viable) + memory note on FFI boundary tax
Hand-coded single-pass backpatched Person_encode_ibuf wins by 1.7x at 10-100B but loses 1.4-2.7x at 1KB-100KB. Crossover at ~26 emails: per-field ffi.copy boundaries scale linearly while Person_encode pays one bulk table.concat memcpy regardless of count. Three ibuf attempts total (per-byte alloc, two-pass reserve, single-pass backpatch), same root cause each time. Not revivable without LuaJIT FFI sinking or a cdata-string API contract.
Eugene Blikh <bigbes@gmail.com> — 2026-05-24 04:31:13 UTC
Commit 5de883e9079faacdcdccb853011e52142cbb16b9 —
view raw patch
Parent(s):
b624a6bf
| File | Status | + | − |
|---|---|---|---|
.beads/interactions.jsonl
|
M | +1 | |
.beads/issues.jsonl
|
M | +1 | -1 |