mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-13 05:45:31 +00:00
[PR #499] Random perf improvements #1070
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/499
State: closed
Merged: No
Codegen tweaks and allocation improvements.
Removing the overheads in the simple
Markdown.ToHtml(...)case with the default pipeline.For an empty string allocations go from 17.14 KB to 928 B and take 1/20th the time because of the default pipeline caching (
2af8b1f) - means we're now benefiting from the Renderer caching fromafe4308e91in the basic use cases.For
c776d18I was quite surprised how bad the compiler is at avoiding these allocations :/