Skip to content
New issue

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

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

Already on GitHub? # to your account

Optimize HtmlNode.WriteAttribute #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lahma
Copy link

@lahma lahma commented Jun 29, 2024

When checking for docfx performance, I noticed that a lot of string allocations were done inside of HtmlAgilityPack. This PR changes WriteAttribute to call separate Write calls instead of concatenating strings before writing them.

image

@lahma lahma force-pushed the write-stream-without-concatenation branch from aa058eb to c4dee93 Compare October 13, 2024 10:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant