Skip to content

BendRT: a hot type counts the fields of every node, shared or not - #1813

Merged
Lorenzobattistela merged 1 commit into
mainfrom
docs/bendrt-field-counts
Oct 21, 2026
Merged

Lorenzobattistela merged 1 commit into
mainfrom
docs/bendrt-field-counts

Conversation

@Lorenzobattistela

Copy link
Copy Markdown
Collaborator

#1812 fixed the guide's "only + values carry a reference count"; BendRT said the same in two places. §4.2 claimed "an unshared value carries no count anywhere", two sentences before saying hot types seal every stored field at build time, and §11 claimed "the unshared majority of a program" has no count traffic. Neither holds for a hot datatype: once any value of it is copied, every node of that type seals its fields, &1 ones included (#1559).

Both passages now say it per type: §4.2 drops the claim and says hot types pay on every node, shared or not; §11 says counts are minted for the types the analysis finds shared. §3.1 already defines hotness this way and is unchanged. The PDF is rebuilt with typst 0.15.1 and is still 6 pages.

Closes #1559.

🤖 Generated with Claude Code

@Lorenzobattistela
Lorenzobattistela merged commit 8409268 into main Oct 21, 2026
1 check passed
@Lorenzobattistela
Lorenzobattistela deleted the docs/bendrt-field-counts branch October 21, 2026 17:05
@Lorenzobattistela Lorenzobattistela mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One + on a List<&2, U32> seals every List cell a native build makes, List<&1, U32> ones included: a loop that shares nothing runs 2x slower

1 participant