Skip to content

Don't use localeCompare in CallSign.prototype.compareTo - #316

Open
iainireland wants to merge 1 commit into
WebKit:mainfrom
iainireland:cdjs-localecompare-fix
Open

iainireland wants to merge 1 commit into
WebKit:mainfrom
iainireland:cdjs-localecompare-fix

Conversation

@iainireland

@iainireland iainireland commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

This returns the same value as the previous implementation for every call in a run of cdjs, without encouraging engines to optimize silly uses of localeCompare.

This fixes issue #294.

@netlify

netlify Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 939480f
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/6ae9ed3abea542906ff48b28
😎 Deploy Preview https://deploy-preview-316--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@camillobruni

Copy link
Copy Markdown
Contributor
d8:           103.60 ±  5.90  ->  117.70 ±  6.00  (+13.6%)
jsc:          122.00 ± 11.00  ->  107.00 ± 12.00  (-12.3%)
spidermonkey:  43.70 ±  2.50  ->   71.50 ±  2.20  (+63.6%)

This produces the same results as localeCompare for every call in a run of cdjs, without encouraging engines to optimize silly uses of localeCompare.
@iainireland
iainireland force-pushed the cdjs-localecompare-fix branch from 63d5306 to 939480f Compare November 3, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants