mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-08 13:54:54 +00:00
[PR #388] Optimized LineReader using string.IndexOfAny #983
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?
Original Pull Request: https://github.com/xoofx/markdig/pull/388
State: closed
Merged: No
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().