Skip to content

Add non-boxing enumerator for HtmlNodeCollection#555

Merged
JonathanMagnan merged 1 commit intozzzprojects:masterfrom
lahma:non-boxing-enumerator
Sep 15, 2025
Merged

Add non-boxing enumerator for HtmlNodeCollection#555
JonathanMagnan merged 1 commit intozzzprojects:masterfrom
lahma:non-boxing-enumerator

Conversation

@lahma
Copy link
Contributor

@lahma lahma commented Jun 29, 2024

When checking for docfx performance, I noticed that a lot of enumerator allocations were done inside of HtmlAgilityPack. This PR adds public struct enumerator access which won't need to box against interface, foreach loops will start to use this one.

image

@JonathanMagnan JonathanMagnan merged commit da09054 into zzzprojects:master Sep 15, 2025
@lahma lahma deleted the non-boxing-enumerator branch September 16, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants