Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: d6224ea8912dfa8b57145b9d573a52760e600d3a https://github.com/WebKit/WebKit/commit/d6224ea8912dfa8b57145b9d573a52760e600d3a Author: Yusuke Suzuki <ysuz...@apple.com> Date: 2024-11-14 (Thu, 14 Nov 2024)
Changed paths: M Source/JavaScriptCore/runtime/RegExpObjectInlines.h M Source/JavaScriptCore/runtime/StringPrototype.cpp Log Message: ----------- [JSC] Make RegExp replace with empty string faster https://bugs.webkit.org/show_bug.cgi?id=283087 rdar://139834582 Reviewed by Yijia Huang. This patch adds fast path for `"string".replace(/atom/g, "")`. We can search atom string in a tight loop and quickly collect the resulted ranges. * Source/JavaScriptCore/runtime/RegExpObjectInlines.h: (JSC::getRegExpObjectLastIndexAsUnsigned): (JSC::RegExpObject::execInline): (JSC::RegExpObject::matchInline): * Source/JavaScriptCore/runtime/StringPrototype.cpp: (JSC::removeUsingRegExpSearch): Canonical link: https://commits.webkit.org/286607@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes