WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61821
[V8] Optimize fetches of indexed properties in custom bindings
https://bugs.webkit.org/show_bug.cgi?id=61821
Summary
[V8] Optimize fetches of indexed properties in custom bindings
Kenneth Russell
Reported
2011-05-31 16:55:06 PDT
Currently the custom V8 bindings for typed arrays' set() method taking a JavaScript array allocate a new Number instance for each element fetched. The V8 API contains a method on the Object class which supports faster fetching of indexed properties. I'm not sure whether it was an oversight on my part or whether that method didn't exist at the time the code was written, but it should definitely be used.
Attachments
Patch
(1.89 KB, patch)
2011-05-31 17:03 PDT
,
Kenneth Russell
no flags
Details
Formatted Diff
Diff
Patch
(4.92 KB, patch)
2011-06-01 12:49 PDT
,
Kenneth Russell
japhet
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kenneth Russell
Comment 1
2011-05-31 16:57:47 PDT
The associated Chromium bug report is
http://crbug.com/84007
.
Kenneth Russell
Comment 2
2011-05-31 17:03:36 PDT
Created
attachment 95513
[details]
Patch
anton muhin
Comment 3
2011-06-01 06:44:50 PDT
Comment on
attachment 95513
[details]
Patch LGTM
Nate Chapin
Comment 4
2011-06-01 08:29:44 PDT
Comment on
attachment 95513
[details]
Patch This is fine, though I notice that there are several other places in the v8 bindings where we are still using the the Get() variant you're removing here. Is there any reason we shouldn't change those too?
Kenneth Russell
Comment 5
2011-06-01 12:05:34 PDT
Good point. I've updated the synopsis and will upload a new patch shortly.
Kenneth Russell
Comment 6
2011-06-01 12:49:40 PDT
Created
attachment 95644
[details]
Patch
Nate Chapin
Comment 7
2011-06-01 12:50:34 PDT
Comment on
attachment 95644
[details]
Patch Great, thanks!
Kenneth Russell
Comment 8
2011-06-01 12:56:51 PDT
"webkit-patch land" hung. Committed as
http://trac.webkit.org/changeset/87837
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug