Chromium Code Reviews
DescriptionIntroduce StringImpl::createPreallocatedStatic
This CL adds StringImpl::createPreallocatedStatic and replaces all of
existing usage of StringImpl::createStatic with the new one.
In blink initialization phase, CoreInitializer::init() creates more than
500 of StringImpl with StringImpl::createStatic, which allocates new
buffers and copy string literals into them.
That costs around 3.1ms of renderer startup time on Nexus 4.
OTOH, StringImpl::createPreallocatedStatic reuses the static storage for
string literals without allocating extra buffer. That reduces
CoreInitializer::init() time to 1.8ms.
BUG=
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 10
Patch Set 4 : +comment. Removed StringImpl::createStatic. #
Messages
Total messages: 23 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||