DescriptionHeapSnapshot: 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 #
Messages
Total messages: 8 (0 generated)
|