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

Issue 11828014: Added %FlattenString and use it to speed up a regression test. (Closed)

Created:
7 years, 11 months ago by Sven Panne
Modified:
7 years, 11 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Added %FlattenString and use it to speed up a regression test. Flattening strings is relatively costly and by doing it after every duplication we avoid combinatorial explosion. Note that flattening could have been done by e.g. using a regular expression, too, but this is just another implementation detail and %FlattenString seems general enough to be useful in other tests, too. Committed: http://code.google.com/p/v8/source/detail?r=13337

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed feedback. Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M src/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-crbug-160010.js View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
7 years, 11 months ago (2013-01-09 07:26:12 UTC) #1
Michael Starzinger
LGTM (with a nit). https://codereview.chromium.org/11828014/diff/1/src/runtime.h File src/runtime.h (right): https://codereview.chromium.org/11828014/diff/1/src/runtime.h#newcode377 src/runtime.h:377: F(FlattenString, 1, 1) \ Nit ...
7 years, 11 months ago (2013-01-09 09:09:40 UTC) #2
Yang
On 2013/01/09 09:09:40, Michael Starzinger wrote: > LGTM (with a nit). > > https://codereview.chromium.org/11828014/diff/1/src/runtime.h > ...
7 years, 11 months ago (2013-01-09 09:12:38 UTC) #3
Sven Panne
7 years, 11 months ago (2013-01-09 09:28:42 UTC) #4
Regarding the use of %FlattenString in other tests: I'd like to drive the
decision where to use this performance hack by, well, performance numbers. :-)
Currently substr.js is not even in the top 20 long runner hit list...

Landing.

https://codereview.chromium.org/11828014/diff/1/src/runtime.h
File src/runtime.h (right):

https://codereview.chromium.org/11828014/diff/1/src/runtime.h#newcode377
src/runtime.h:377: F(FlattenString, 1, 1) \
On 2013/01/09 09:09:40, Michael Starzinger wrote:
> Nit of the day: I think this better fits into the /* Utilities */ category
> further up.

Done.

Powered by Google App Engine
This is Rietveld 408576698