mirror of
https://github.com/xoofx/markdig.git
synced 2026-07-09 02:26:32 +00:00
[PR #621] April perf improvements #1152
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/621
State: closed
Merged: Yes
Interesting changes:
Inlines)MarkdownObjectto store the type and then doingUnsafecastsCodeInline.ContentType.GetTypeHandlewith the method table pointerPerf:
Default pipeline
Parsing (~5% speedup, ~8% fewer allocated bytes)
Rendering (2-10% speedup)
Advanced pipeline
Parsing (7-16% speedup, ~7% fewer allocated bytes)
Rendering