Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7ed31ce2976b3aa0900ca124a4ee45697d367cca
https://github.com/WebKit/WebKit/commit/7ed31ce2976b3aa0900ca124a4ee45697d367cca
Author: Yusuke Suzuki <[email protected]>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M Source/JavaScriptCore/parser/Parser.cpp
M Source/JavaScriptCore/parser/Parser.h
Log Message:
-----------
[JSC] Reduce Vector allocation in Parser
https://bugs.webkit.org/show_bug.cgi?id=292047
rdar://150002285
Reviewed by Keith Miller.
These Vectors are mostly very small (from JS2 data, it is mostly 0-4
size. Sometimes it becomes 10 or larger, but very rare). Let's just have
some inline capacity to avoid Vector heap allocation.
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseExpressionOrLabelStatement):
(JSC::Parser<LexerType>::parseIfStatement):
(JSC::Parser<LexerType>::parseExportSpecifier):
(JSC::Parser<LexerType>::parseExportDeclaration):
(JSC::Parser<LexerType>::parseMemberExpression):
* Source/JavaScriptCore/parser/Parser.h:
Canonical link: https://commits.webkit.org/294110@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes