Conversation
|
|
|
I'm not sure about this. I'd prefer if it indexes one char only, when searching longer words I think |
|
Did you measure the perf diff on this one @sun0day? I also think that this is going too far. I think we better keep using |
|
I only tested the js code performance between The thing is that plain But also I know that |
bluwy
left a comment
There was a problem hiding this comment.
Looking forward to the next major where we can use String.prototype.at to make these more compact.
|
Thank you for identifying this performance issue. I have reported it to the V8 project. |
|
Thanks @robpalme 🙏🏼 |
|
@patak-dev Hi, there, The issue with |
|
@OnlyWick nice! thanks for the heads up, would you like to send a PR to change these? |
Description
Similar to #12531, this PR uses
===instead ofendsWithin some hot extensions.Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).