Skip to content

Optimize String.prototype.concat#1295

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

Optimize String.prototype.concat#1295
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:opt-string-p-concat

Conversation

@bnoordhuis
Copy link
Contributor

@bnoordhuis bnoordhuis commented Jan 4, 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.

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
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