mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-09 13:56:56 +00:00
[PR #359] [CLOSED] [WIP] Optimize abbreviation parser re-entry #969
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/359
Author: @MihaZupan
Created: 7/28/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (3)
c8e105cAdd test for Issue #306213b811Optimize abbreviation parser re-entry62a8d4fAllow more timing leeway during CI📊 Changes
7 files changed (+59 additions, -5 deletions)
View changed files
📝
src/Markdig.Tests/IssuesMarkdown/275.md(+0 -0)📝
src/Markdig.Tests/IssuesMarkdown/278.md(+0 -0)➕
src/Markdig.Tests/IssuesMarkdown/306.md(+5 -0)📝
src/Markdig.Tests/MiscTests.cs(+15 -2)📝
src/Markdig.Tests/TestParser.cs(+7 -0)📝
src/Markdig/Extensions/Abbreviations/AbbreviationParser.cs(+25 -3)➕
src/Markdig/Helpers/RefInt.cs(+7 -0)📄 Description
This improves performance in cases like #306 where the AbbreviationParser's PostMatch was running over the entire LiteralInline, every time a new character was appended to it. Now it only checks the ending.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.