New issue
Advanced search Search tips
Starred by 10 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2017
HW: ----
NextAction: ----
OS: ----
Priority: 2
Type: Bug



Sign in to add a comment

Crankshaft does not speed up sorting using a comparison function:

Project Member Reported by erik.co...@gmail.com, Nov 22 2011

Issue description

Example code:

(function() {
  var random = [];
  for (var i = 0; i < 10000; ++i) {
    random.push(Math.random());
  }

  function numCompare(a, b) { return a - b }

  for (var i = 0; i < 1000; i++) {
    random.slice().sort(numCompare);
  }
})();

See also: http://jsperf.com/stable-sort/2 esp. 'unstable' results.
 

Comment 1 by danno@chromium.org, Aug 20 2012

Owner: svenpanne@chromium.org

Comment 2 by habl...@google.com, Apr 29 2015

Status: Assigned
Owner: titzer@chromium.org
Labels: Priority-2

Comment 5 by titzer@chromium.org, Jul 11 2017

Status: WontFix (was: Assigned)
Crankshaft has been deleted.

Sign in to add a comment