mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-14 05:45:05 +00:00
[PR #906] [MERGED] Lazily allocate storage for ProcessInlinesBegin/End delegates on Blocks #1304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/906
Author: @MihaZupan
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/21/2025
Merged by: @xoofx
Base:
master← Head:block-delegates2📝 Commits (1)
db3baa9Lazily allocate ProcessInlinesBegin/End delegates on Blocks📊 Changes
7 files changed (+32 additions, -18 deletions)
View changed files
📝
src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs(+0 -2)📝
src/Markdig/Extensions/AutoIdentifiers/AutoIdentifierExtension.cs(+0 -1)📝
src/Markdig/Extensions/Footnotes/FootnoteParser.cs(+0 -3)📝
src/Markdig/Extensions/SmartyPants/SmartyPantsInlineParser.cs(+0 -2)📝
src/Markdig/Extensions/Tables/PipeTableParser.cs(+1 -4)📝
src/Markdig/Renderers/RendererBase.cs(+2 -2)📝
src/Markdig/Syntax/Block.cs(+29 -4)📄 Description
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
MarkdownDocumentblock).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.