[PR #637] Reduce the overhead of Parse calls #1159

Closed
opened 2026-01-29 14:50:39 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/637

State: closed
Merged: Yes


Saves 8 % (~65 ns) on my machine when parsing Markdown.Parse("foo", _pipeline) with

new MarkdownPipelineBuilder().UsePreciseSourceLocation();

and 15 % (~150 ns) with UseAdvancedExtensions.

**Original Pull Request:** https://github.com/xoofx/markdig/pull/637 **State:** closed **Merged:** Yes --- Saves 8 % (~65 ns) on my machine when parsing `Markdown.Parse("foo", _pipeline)` with ```c# new MarkdownPipelineBuilder().UsePreciseSourceLocation(); ``` and 15 % (~150 ns) with `UseAdvancedExtensions`.
claunia added the pull-request label 2026-01-29 14:50:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1159