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

Remove unnecessary object initializations from HtmlNodeNavigator.Clone() #328

Merged

Conversation

Schnutzel
Copy link

Fix for: #324
HtmlNodeNavigator.Clone() is called repeatedly when executing HtmlNode.SelectNodes. Each call creates instances of HtmlDocument and NameTable which are immediately overwritten by the cloned values.

The fix removes the inline field assignments and moves them into the constructors, wherever needed.

@JonathanMagnan
Copy link
Member

Thank you,

We will look at it.

My developer already looking last Friday at your first request but he told me that was causing some issue. So I wanted to look at it myself before answering.

I will make him test your pull request first. Maybe he did something wrong.

@JonathanMagnan JonathanMagnan merged commit 5a725a0 into zzzprojects:master Sep 30, 2019
@JonathanMagnan
Copy link
Member

Sorry for the long delay,

We are finally able to work again on HAP (we had lot of internal stuff to complete first).

The v1.11.13 has been released with your code.

Thank again for your pull request.

Best Regards,

Jonathan

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.

None yet

3 participants