Closed 3bdNKocY closed 6 months ago
Hello @3bdNKocY ,
Thank you for your pull. we will make a slight change to it, but besides it, everything looks great.
Best Regards,
Jon
Here is the small improvement we made with your modification: https://github.com/zzzprojects/html-agility-pack/commit/43d513377c788611db67c5d277458871e9589f3a
There is no point in starting the string.Compare
logic if the tagStartMatching
already return false.
I'm not sure how much it will improve the performance but it should certainly doesn't hurt it ;)
Best Regards,
Jon
Avoid string concat and substring operations to optimize memory usage. This reduces memory usages by around 80MB on a local large html file.