Skip to content

Add spec perf/19.24 on the fixed-field layout of the term nodes - #346

Merged
tamnd merged 1 commit into
mainfrom
docs/perf-19-24
Dec 1, 2026
Merged

tamnd merged 1 commit into
mainfrom
docs/perf-19-24

Conversation

@tamnd

@tamnd tamnd commented Dec 1, 2026

Copy link
Copy Markdown
Owner

This PR adds spec perf/19.24 for the M13 plan item on the fixed-field node layout (#344).

A microbenchmark on the init store compares the node read of the store of perf/04 with a flat layout of 20-byte nodes. The walk does 152 M reads. The store read costs about 22 instructions and the flat read costs about 17 instructions. With about 110 M node reads by engine V on init, the gain is about 0.55 G, or about 1.3%. The change touches the store, the pack format, the FFI and the handles and adds about 40 MB of memory, so the layout of perf/04 does not change.

The notes copy of the spec is synced.

A microbenchmark on the init store compares the node read of the store with a flat layout of 20-byte nodes. The flat layout removes about 5 instructions for each read, which is about 1.3% of init, and the change is large, so the layout of perf/04 does not change.
@tamnd tamnd added this to the M13 Perf: cost per step milestone Dec 1, 2026
@tamnd tamnd added area/docs The spec and the other documents type/docs Documents only labels Dec 1, 2026
@tamnd
tamnd enabled auto-merge (squash) December 1, 2026 14:14
@tamnd tamnd mentioned this pull request Dec 1, 2026
4 of 13 tasks
@tamnd
tamnd merged commit e330966 into main Dec 1, 2026
28 of 29 checks passed
@tamnd
tamnd deleted the docs/perf-19-24 branch December 1, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs The spec and the other documents type/docs Documents only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant