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

Issue 14315005: Replace qsort with std::sort. (Closed)

Created:
7 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
7 years, 8 months ago
Reviewers:
danno
CC:
v8-dev, Sven Panne
Visibility:
Public.

Description

Replace qsort with std::sort. std::sort is a template, so it can be inlined more aggressively. Also, it's O(n log n), while libc's qsort is O(n^2) BUG=2639 Committed: http://code.google.com/p/v8/source/detail?r=14406

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -57 lines) Patch
M src/d8.cc View 1 2 3 3 chunks +10 lines, -4 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 3 chunks +10 lines, -13 lines 0 comments Download
M src/list-inl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/store-buffer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/store-buffer.cc View 3 chunks +5 lines, -33 lines 0 comments Download
M src/utils.h View 1 2 3 4 3 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jochen (gone - plz use gerrit)
7 years, 8 months ago (2013-04-18 11:53:37 UTC) #1
danno
https://codereview.chromium.org/14315005/diff/6001/src/store-buffer.cc File src/store-buffer.cc (right): https://codereview.chromium.org/14315005/diff/6001/src/store-buffer.cc#newcode261 src/store-buffer.cc:261: std::sort(old_start_, old_top_); Although I think I convinced myself that ...
7 years, 8 months ago (2013-04-23 07:27:13 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/14315005/diff/6001/src/store-buffer.cc File src/store-buffer.cc (right): https://codereview.chromium.org/14315005/diff/6001/src/store-buffer.cc#newcode261 src/store-buffer.cc:261: std::sort(old_start_, old_top_); On 2013/04/23 07:27:13, danno wrote: > Although ...
7 years, 8 months ago (2013-04-23 07:34:50 UTC) #3
marja
We shouldn't pass a custom comparison function unless there is a good reason for doing ...
7 years, 8 months ago (2013-04-23 09:08:05 UTC) #4
marja
Ehmh, I was being unclear. I meant: at least we shouldn't make the code so ...
7 years, 8 months ago (2013-04-23 09:09:18 UTC) #5
danno
lgtm, I'll land this for you
7 years, 8 months ago (2013-04-24 09:30:43 UTC) #6
danno
7 years, 8 months ago (2013-04-24 11:20:24 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r14406 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698