-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ToV8{Traits}: Optimize v8::Array creation when converting sequences
Avoid the round-trips and overhead of calling v8::Object::CreateDataProperty() for every single item in the sequence we want to convert by convert all items first and then passing them at once to the v8::Array::New() overload that takes an array and a length. Change-Id: Ia13fbfd70c7b0c0ccd6a8c2bab5f70a10a0ba8b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4798290 Reviewed-by: Yuki Shiino <yukishiino@chromium.org> Auto-Submit: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/main@{#1187102}
- Loading branch information
Showing
2 changed files
with
22 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters