mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
[PR #308] [MERGED] fix emoji performance issue when multiple pipeline needed #930
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/308
Author: @yishengjin1413
Created: 2/20/2019
Status: ✅ Merged
Merged: 2/20/2019
Merged by: @xoofx
Base:
master← Head:master📝 Commits (1)
57784cefix emoji performance issue when muti pipeline needed📊 Changes
1 file changed (+38 additions, -42 deletions)
View changed files
📝
src/Markdig/Extensions/Emoji/EmojiParser.cs(+38 -42)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.