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

Document copy constructor? #138

Open
crazydef opened this issue Aug 31, 2020 · 0 comments
Open

Document copy constructor? #138

crazydef opened this issue Aug 31, 2020 · 0 comments

Comments

@crazydef
Copy link

Hi,

After profiling, I've noticed that parsing HTML source when creating a new document is a huge performance hit (I can be parsing the same HTML code hundreds of times).

Basically my work flow is: Create an object (in our engine), attach a litehtml document to it (which involves creating/parsing/etc) and then update parts of the parsed HTML with data from that object every frame - or whenever updates arrive over the network.

Is there an easy way to parse the document once and attach a duplicate of the pre-parsed data structure that I can then modify accordingly instead of parsing over and over and over again?

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

No branches or pull requests

1 participant