Skip to content

Reduce ref count sizes#541

Merged
vinistock merged 1 commit intomainfrom
01-28-reduce_ref_count_sizes
Jan 30, 2026
Merged

Reduce ref count sizes#541
vinistock merged 1 commit intomainfrom
01-28-reduce_ref_count_sizes

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Jan 29, 2026

This PR reduces the size of our ref_count to u32. It's unlikely we'll exceed 64 bits of references to the same name or string. For safety, I also started panicking if we ever do reach the u32 limit.

This change by itself doesn't reduce memory usage due to padding, but the next PR in the stack makes substantial improvements.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock mentioned this pull request Jan 29, 2026
@vinistock vinistock self-assigned this Jan 29, 2026
@vinistock vinistock marked this pull request as ready for review January 29, 2026 21:22
@vinistock vinistock requested a review from a team as a code owner January 29, 2026 21:22
@vinistock vinistock merged commit 391ce0b into main Jan 30, 2026
26 checks passed
@vinistock vinistock deleted the 01-28-reduce_ref_count_sizes branch January 30, 2026 16:05
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.

2 participants