Use StringView for Yarr / RegularExpression parsing, to avoid unnecessary String construction in some cases. It is not uncommon for the pattern to be a string literal.
Created attachment 455857 [details] Patch
Committed r291972 (248936@main): <https://commits.webkit.org/248936@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455857 [details].
<rdar://problem/90931200>
Comment on attachment 455857 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455857&action=review > Source/JavaScriptCore/yarr/YarrJIT.cpp:4655 > + StringView m_patternString; This could be const StringView.
(In reply to Darin Adler from comment #4) > Comment on attachment 455857 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=455857&action=review > > > Source/JavaScriptCore/yarr/YarrJIT.cpp:4655 > > + StringView m_patternString; > > This could be const StringView. Fixed in <https://commits.webkit.org/r291997>.