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

double-truncate to avoid inefficient encodeString() usage #413

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Oct 31, 2023

Closes #366.

There are some existing tests that were broken in as I was working on this, so I think those plus the new test are enough.


Re: the example raised in the issue, I see timing drop from ~1s to ~0.25s on my machine. Still noticeably slow, but a definite improvement. A quick profile shows we're going to need to drop to C++ to do any better.

@hadley hadley merged commit e088a1c into r-lib:main Nov 2, 2023
12 checks passed
@hadley
Copy link
Member

hadley commented Nov 2, 2023

Thanks!

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

Successfully merging this pull request may close these issues.

print.xml_nodeset very slow for document with one huge node
2 participants