Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d8e283330a3152118a1a0832dbd23b5a542b16f0
https://github.com/WebKit/WebKit/commit/d8e283330a3152118a1a0832dbd23b5a542b16f0
Author: Chris Dumez <[email protected]>
Date: 2025-04-29 (Tue, 29 Apr 2025)
Changed paths:
M Source/JavaScriptCore/runtime/JSObject.cpp
M Source/JavaScriptCore/runtime/MathObject.cpp
M Source/WTF/wtf/Vector.h
M Source/WTF/wtf/cf/VectorCF.h
M Source/WTF/wtf/cocoa/VectorCocoa.h
Log Message:
-----------
Optimize conversions from NSArray / CFArrayRef to Vector
https://bugs.webkit.org/show_bug.cgi?id=291769
Reviewed by Darin Adler.
Optimize conversions from NSArray / CFArrayRef to Vector by leveraging the
`Vector(size_t, const Functor& valueGenerator)` constructor. It avoids
capacity checks when appending elements.
* Source/WTF/wtf/Vector.h:
(WTF::Vector::Vector):
* Source/WTF/wtf/cf/VectorCF.h:
(WTF::makeVector):
* Source/WTF/wtf/cocoa/VectorCocoa.h:
(WTF::makeVector):
Canonical link: https://commits.webkit.org/294292@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