Chromium Code Reviews
DescriptionLeverage 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 #
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||