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

Issue 24174002: HeapSnapshot: replace O(N*ln(N)) algorithm of sorting with O(N) one. (Closed)

Created:
7 years, 3 months ago by loislo
Modified:
7 years, 3 months ago
Reviewers:
alph, yurys, Yang
CC:
v8-dev, yurys, alph
Visibility:
Public.

Description

HeapSnapshot: replace O(N*ln(N)) algorithm of sorting with O(N) one. We have HashMap for the strings. They got id sequentially. So we could use index sort. BUG=none R=alph@chromium.org, yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16734

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments addressed #

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -27 lines) Patch
M src/heap-snapshot-generator.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 1 chunk +9 lines, -26 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
loislo
7 years, 3 months ago (2013-09-16 11:09:18 UTC) #1
alph
https://codereview.chromium.org/24174002/diff/1/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/24174002/diff/1/src/heap-snapshot-generator.cc#newcode2696 src/heap-snapshot-generator.cc:2696: Vector<HashMap::Entry*> sorted_strings = A vector of strings instead of ...
7 years, 3 months ago (2013-09-16 11:18:09 UTC) #2
loislo
On 2013/09/16 11:18:09, alph wrote: > https://codereview.chromium.org/24174002/diff/1/src/heap-snapshot-generator.cc > File src/heap-snapshot-generator.cc (right): > > https://codereview.chromium.org/24174002/diff/1/src/heap-snapshot-generator.cc#newcode2696 > ...
7 years, 3 months ago (2013-09-16 12:05:20 UTC) #3
alph
lgtm
7 years, 3 months ago (2013-09-16 12:17:50 UTC) #4
Yang
I suppose that the value is set by GetStringId, which assigns it by a growing ...
7 years, 3 months ago (2013-09-16 12:45:10 UTC) #5
loislo
On 2013/09/16 12:45:10, Yang wrote: > I suppose that the value is set by GetStringId, ...
7 years, 3 months ago (2013-09-16 13:08:25 UTC) #6
Yang
On 2013/09/16 13:08:25, loislo wrote: > On 2013/09/16 12:45:10, Yang wrote: > > I suppose ...
7 years, 3 months ago (2013-09-16 13:11:20 UTC) #7
loislo
7 years, 3 months ago (2013-09-16 13:13:58 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r16734 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698