Skip to content

Lazily allocate storage for ProcessInlinesBegin/End delegates on Blocks#906

Merged
xoofx merged 1 commit intoxoofx:masterfrom
MihaZupan:block-delegates2
Oct 21, 2025
Merged

Lazily allocate storage for ProcessInlinesBegin/End delegates on Blocks#906
xoofx merged 1 commit intoxoofx:masterfrom
MihaZupan:block-delegates2

Conversation

@MihaZupan
Copy link
Collaborator

Reduces parsing allocations by ~2% by reducing the size of each block by 16 bytes.
It does increase the cost when these delegates are used, but that's usually very rare (e.g. only for the top-level MarkdownDocument block).

@MihaZupan MihaZupan changed the title Lazily allocate ProcessInlinesBegin/End delegates on Blocks Lazily allocate storage for ProcessInlinesBegin/End delegates on Blocks Oct 20, 2025
@xoofx xoofx merged commit bcbd8e4 into xoofx:master Oct 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants