I am just attaching the TC39 feature request here in case anyone wants to 
follow it https://es.discourse.group/t/faster-string-comparisons/2444

On Thursday, October 9, 2025 at 12:06:47 AM UTC+5 Zeeshan Abid wrote:

> Hello, I noticed that `toLower() === toLower()` is the common practice for 
> comparing strings ignoring case sensitivity. I wanted to know is it 
> possible to add a function like
>
> `String.compare(str1, str2, IgnoreLowerCaseOption);`
>
> This should in theory run faster than doing `toLower() === toLower()`
>
> I already tried using `String.prototype.localeCompare` and it is slower 
> than doing `toLower() === toLower()`
>
> Thanks!

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/fd503063-0fa2-4f78-a60e-99de7fc07720n%40googlegroups.com.

Reply via email to