Closed
Bug 1290676
Opened 9 years ago
Closed 9 years ago
Call InsertionSort when |denseLen < 24| in MergeSort?
Categories
(Core :: JavaScript: Standard Library, defect)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla51
People
(Reporter: anba, Assigned: jj, Mentored)
References
Details
Attachments
(1 file)
|
1.67 KB,
patch
|
mrrrgn
:
review+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/mozilla-central/file/e5859dfe0bcb/js/src/builtin/Sorting.js#l251
---
// Insertion sort for small arrays, where "small" is defined by performance
// testing.
if (len < 24) {
....
---
Shouldn't this line check for |denseLen| instead of |len|?
And the |denseList| allocation in [1] should probably be moved after [2].
[1] http://hg.mozilla.org/mozilla-central/file/e5859dfe0bcb/js/src/builtin/Sorting.js#l232
[2] http://hg.mozilla.org/mozilla-central/file/e5859dfe0bcb/js/src/builtin/Sorting.js#l239
Updated•9 years ago
|
Mentor: winter2718
Updated•9 years ago
|
Assignee: nobody → jsnajdr
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8778933 -
Flags: review?(winter2718)
Updated•9 years ago
|
Assignee: jsnajdr → jinank94
Comment 2•9 years ago
|
||
Comment on attachment 8778933 [details] [diff] [review]
a1.diff
Nice, thanks!
Attachment #8778933 -
Flags: review?(winter2718) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/af3c0ced9dc4
Call InsertionSort when |denseLen < 24| in MergeSort. r=mrrrgn
Keywords: checkin-needed
Comment 4•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•