[PR #864] A couple perf improvements #1263

Open
opened 2026-01-29 14:52:15 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Improves parsing perf a bit (around 2-4 %).

Logically separated in commits:

  • Removing branches from various character checks (removing redundant conditions in calling code, updating helpers)
  • A bit faster AutoLink and FencedCodeBlock matching
  • Removed per-parsing allocation of delegate captures in AutoIdentifiers
  • Using frozen collections in a few minor places
**Original Pull Request:** https://github.com/xoofx/markdig/pull/864 **State:** closed **Merged:** Yes --- Improves parsing perf a bit (around 2-4 %). Logically separated in commits: - Removing branches from various character checks (removing redundant conditions in calling code, updating helpers) - A bit faster AutoLink and FencedCodeBlock matching - Removed per-parsing allocation of delegate captures in AutoIdentifiers - Using frozen collections in a few minor places
claunia added the pull-request label 2026-01-29 14:52:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1263