Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Issue 23804006: Leverage the fact that we already know the array size in V8Binding's array converting (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Visibility:
Public.

Description

Leverage the fact that we already know the array size in V8Binding's array converting Leverage the fact that we already know the array size in V8Binding's array converting. Use Vector::reserveInitialCapacity(length) to make sure we allocate enough memory for all the elements. This allows us to use Vector::uncheckedAppend() instead of Vector::append() which bypasses capacity checks for each loop iteration. R=haraken BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157463

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M Source/bindings/v8/V8Binding.h View 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-09 09:32:18 UTC) #1
haraken
LGTM. (Though I don't know this is a bottleneck in array conversions.)
7 years, 3 months ago (2013-09-09 09:35:14 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23804006/1
7 years, 3 months ago (2013-09-09 10:51:37 UTC) #3
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-09 11:00:07 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23804006/1
7 years, 3 months ago (2013-09-09 16:55:02 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-09 17:59:27 UTC) #6
Message was sent while issue was closed.
Change committed as 157463

Powered by Google App Engine
This is Rietveld 408576698