Skip to content

Optimize String.prototype.concat - #1295

Merged
bnoordhuis merged 1 commit into
quickjs-ng:masterfrom
bnoordhuis:opt-string-p-concat
Feb 27, 2026
Merged

bnoordhuis merged 1 commit into
quickjs-ng:masterfrom
bnoordhuis:opt-string-p-concat

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Jan 4, 2026 •

Copy link
Copy Markdown
Contributor

Optimize the common case where the inputs are strings.

Speeds up the string_concat[1-3] benchmarks by 1.1x, 1.8x and 2.1x.

Results for string_concat0 are unchanged. It's already so fast there
is little to shave off.

Optimize the common case where the inputs are strings.

Speeds up the string_concat[1-3] benchmarks by 1.1x, 1.8x and 2.1x.

Results for string_concat0 are unchanged. It's already so fast there
is little to shave off.
@bnoordhuis
bnoordhuis merged commit 5468a73 into quickjs-ng:master Feb 27, 2026
122 checks passed
@bnoordhuis
bnoordhuis deleted the opt-string-p-concat branch February 27, 2026 16:20
mochaaP pushed a commit to mcha-forks/quickjs that referenced this pull request May 20, 2026
Optimize the common case where the inputs are strings.

Speeds up the string_concat[1-3] benchmarks by 1.1x, 1.8x and 2.1x.

Results for string_concat0 are unchanged. It's already so fast there
is little to shave off.

(cherry picked from commit 5468a73)
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.

2 participants