mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #388] [CLOSED] Optimized LineReader using string.IndexOfAny #979
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/388
Author: @KrisVandermotten
Created: 1/21/2020
Status: ❌ Closed
Base:
master← Head:linereader📝 Commits (1)
111d6fdOptimized LineReader using string.IndexOfAny📊 Changes
1 file changed (+20 additions, -21 deletions)
View changed files
📝
src/Markdig/Helpers/LineReader.cs(+20 -21)📄 Description
The
LineReaderstruct is responsible for parsing source text into lines.Given that
String.IndexOfAnyis now vectorized, it makes sense to use it instead of the handwritten, unoptimized loop inLineReader.ReadLine().🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.