Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random perf improvements #499

Closed
wants to merge 7 commits into from
Closed

Conversation

MihaZupan
Copy link
Collaborator

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 from afe4308 in the basic use cases.

For c776d18 I was quite surprised how bad the compiler is at avoiding these allocations :/

@xoofx
Copy link
Owner

xoofx commented Dec 21, 2020

Might wait to merge #481 before merging this one?

@xoofx
Copy link
Owner

xoofx commented Dec 21, 2020

And, oh, thank you again, impressed that you still find the time to improve here and there some performance items! 😃

@MihaZupan
Copy link
Collaborator Author

Yeah this one should wait to avoid more merge conflicts. I will look at #481 today

@MihaZupan
Copy link
Collaborator Author

Closing this due to all the conflicts - will open new PRs including ideas from this one.

@MihaZupan MihaZupan closed this Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants