Skip to content

Optimize string formatting - #51373

Merged
jgraham merged 1 commit into
masterfrom
optimize-string-formatting
Mar 17, 2025
Merged

jgraham merged 1 commit into
masterfrom
optimize-string-formatting

Conversation

@domenic

@domenic domenic commented Mar 15, 2025

Copy link
Copy Markdown
Member

Instead of doing 36 passes through the string, do a single pass.

This took up around 2% of the time running a large test (Range-mutations-dataChange.html) in jsdom.

Part of jsdom/jsdom#3154.

Instead of doing 36 passes through the string, do a single pass.

This took up around 2% of the time running a large test (Range-mutations-dataChange.html) in jsdom.

Part of jsdom/jsdom#3154.
@jgraham
jgraham merged commit d7c4f71 into master Mar 17, 2025
@jgraham
jgraham deleted the optimize-string-formatting branch March 17, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants