Repository navigation
Text: a text's rarely set fields wait behind one cold box, 744 to 224 bytes - #579
Merged
Merged
Conversation
… bytes Links, rings, strikes, highlights, pills, copy rules, advance_in, live text, the rich palette and selection colours move into TextCold behind Cold, allocated on the first write; writes that only clear an empty box don't allocate it. A const assert holds TextSpec at 224 bytes. Builders are unchanged.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
#2206 added a bool (selectable_cursor) to TextSpec, which made it 232 bytes; the compile-time assert on its size (224, the budget of #579) then failed, and rune no longer compiled on any 64-bit target. fade_em, the width of a truncate_fade edge that few texts set, moves behind the cold box; the new flag takes its room. The usual width is the cold block's default, so truncate_fade allocates nothing.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A plain text element now allocates a 224-byte record instead of 744.
TextSpec's rarely set fields (links and handlers, rings, strikes, highlights, pills, copy rules,advance_in, live text, rich palette, selection colours) move intoTextColdbehindCold, asEl's rare fields did in RUNE-EL. Clearing an empty box doesn't allocate it.constassert:size_of::<TextSpec>() == 224. Builders are unchanged; nothing outsidecrates/runetouched the fields.ab.ts --parallel, 8 rounds, private harness server, machine at 40-50% load from other work): Context panel feat(site): docs site hosted at anoma.ly/team/rune #1/Linux: keyboard-symbol fallback leaves U+238B (⎋) as tofu — plex_keyboard_symbols_use_real_glyphs fails on stock Ubuntu #2/Linux: windowed examples panic on stock Ubuntu — libxkbcommon-x11.so missing #3 rebuild p50 median 136/139/139 to 126/129/121 us; p99 median 231/229/231 to 222/227/225 us. The luau-perf-2 build measured alongside reads 166/312 us on panel feat(site): docs site hosted at anoma.ly/team/rune #1 today against its 117-127 us solo baseline, so absolute numbers are a loaded machine's; the change is the ~7% p50 drop.