Skip to content

Text: a text's rarely set fields wait behind one cold box, 744 to 224 bytes - #579

Merged
Hona merged 1 commit into
devfrom
rune-textspec
Nov 11, 2026
Merged

Hona merged 1 commit into
devfrom
rune-textspec

Conversation

@Hona

@Hona Hona commented Nov 11, 2026

Copy link
Copy Markdown
Member

A plain text element now allocates a 224-byte record instead of 744.

… 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.
Copilot AI balanced review requested due to automatic review settings November 11, 2026 05:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Hona merged commit fd85a13 into dev Nov 11, 2026
3 checks passed
@Hona
Hona deleted the rune-textspec branch November 11, 2026 05:14
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

1 inactive deployment
release — d037160e Deployed Nov 11, 2026 by Hona via build #474
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