Skip to content

Add spec perf/19.26 on a mask of the loose bound variables in the store - #348

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

tamnd merged 1 commit into
mainfrom
docs/perf-1926

Conversation

@tamnd

@tamnd tamnd commented Dec 1, 2026

Copy link
Copy Markdown
Owner

This PR adds spec perf/19.26. It records the measure of the branch perf/store-mask, which keeps a mask of the loose bound variables of each node in the store, as nano-lean does.

The callgrind counts in CI, without the portable sha256::compress:

Input main perf/store-mask
init 43.93 G 44.62 G (+1.6%)
std 75.94 G 77.03 G (+1.4%)

With --confirm all, init and std give 0 disagreements, and the 225 Arena tests give the expected verdict. The self cost of v_mask_at goes down, but a read of the mask in the store costs about 48 instructions, which is not less than the memo probe that it replaces. The branch is not merged.

Part of #344.

The branch perf/store-mask keeps a 64-bit mask for each node in the store and reads it in v_mask_at. The callgrind count is 1.6% larger on init and 1.4% larger on std, because a read of the store costs as much as the probe of the memo. The branch is not merged.
@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 17:03
@tamnd tamnd mentioned this pull request Dec 1, 2026
4 of 13 tasks
@tamnd
tamnd merged commit a5360eb into main Dec 1, 2026
28 of 29 checks passed
@tamnd
tamnd deleted the docs/perf-1926 branch December 1, 2026 17:05
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