[PR #308] fix emoji performance issue when multiple pipeline needed #935

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

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

State: closed
Merged: Yes


We meet a performance issue when we need to use multiple pipeline. After checking the profiling file and have some local test, I find EmojiParser.Initialize is the problem. At the meantime, we don't need to build the PrefixTree for each instance.

This PR have no logic change, just move the logic to the static constructor.

**Original Pull Request:** https://github.com/xoofx/markdig/pull/308 **State:** closed **Merged:** Yes --- We meet a performance issue when we need to use multiple pipeline. After checking the profiling file and have some local test, I find EmojiParser.Initialize is the problem. At the meantime, we don't need to build the PrefixTree for each instance. This PR have no logic change, just move the logic to the static constructor.
claunia added the pull-request label 2026-01-29 14:47:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#935