Bug 83312

Summary: Use QuickSort when sorting primitive values by string representation
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: JavaScriptCoreAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, fpizlo, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch barraclough: review+

Benjamin Poulain
Reported 2012-04-05 14:18:21 PDT
Currently, we use a stable sort when sorting the JSValues of a JSArray. When all the values are primitive types, one cannot differentiate two values with equal string representation. We should use a faster, non stable, sort algorithm in that case.
Attachments
Patch (2.50 KB, patch)
2012-04-05 14:23 PDT, Benjamin Poulain
barraclough: review+
Benjamin Poulain
Comment 1 2012-04-05 14:23:45 PDT
Gavin Barraclough
Comment 2 2012-04-05 15:36:38 PDT
Comment on attachment 135904 [details] Patch very nice!
Benjamin Poulain
Comment 3 2012-04-05 16:08:34 PDT
Note You need to log in before you can comment on or make changes to this bug.