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

Issue 1444001: Some string optimizations: (Closed)

Created:
10 years, 9 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
Reviewers:
antonm
CC:
v8-dev
Visibility:
Public.

Description

Some string optimizations: * Faster hashing for sequential strings. * When adding short external two-byte strings try to convert them back to ascii. Chances are high the embedder uses two-byte representation even for ascii strings. This optimization saves memory and makes hashing faster. Committed: http://code.google.com/p/v8/source/detail?r=4300

Patch Set 1 #

Total comments: 7

Patch Set 2 : Review fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -4 lines) Patch
M src/heap.cc View 2 chunks +22 lines, -2 lines 0 comments Download
M src/objects.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/objects.cc View 1 1 chunk +27 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/v8-counters.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Vitaly Repeshko
10 years, 9 months ago (2010-03-26 18:40:38 UTC) #1
antonm
LGTM http://codereview.chromium.org/1444001/diff/1/3 File src/objects-inl.h (right): http://codereview.chromium.org/1444001/diff/1/3#newcode261 src/objects-inl.h:261: for (int i = 0, len = length(); ...
10 years, 9 months ago (2010-03-26 18:54:35 UTC) #2
Vitaly Repeshko
Thanks! -- Vitaly http://codereview.chromium.org/1444001/diff/1/3 File src/objects-inl.h (right): http://codereview.chromium.org/1444001/diff/1/3#newcode261 src/objects-inl.h:261: for (int i = 0, len ...
10 years, 9 months ago (2010-03-26 19:04:17 UTC) #3
antonm
10 years, 9 months ago (2010-03-26 19:08:12 UTC) #4
Still LGTM

http://codereview.chromium.org/1444001/diff/1/3
File src/objects-inl.h (right):

http://codereview.chromium.org/1444001/diff/1/3#newcode261
src/objects-inl.h:261: for (int i = 0, len = length(); i < len; i++) {
On 2010/03/26 19:04:17, Vitaly wrote:
> On 2010/03/26 18:54:35, antonm wrote:
> > maybe prefetch length() not to call virtual method in the loop?
> 
> Huh?

Sorry, didn't notice you already do it.

Powered by Google App Engine
This is Rietveld 408576698