mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Switch to std.sort.pdq from std.sort.block (#7574)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -4605,12 +4605,12 @@ const sort_desc = std.sort.desc(u8);
|
||||
|
||||
pub fn sortAsc(in: []string) void {
|
||||
// TODO: experiment with simd to see if it's faster
|
||||
std.sort.block([]const u8, in, {}, cmpStringsAsc);
|
||||
std.sort.pdq([]const u8, in, {}, cmpStringsAsc);
|
||||
}
|
||||
|
||||
pub fn sortDesc(in: []string) void {
|
||||
// TODO: experiment with simd to see if it's faster
|
||||
std.sort.block([]const u8, in, {}, cmpStringsDesc);
|
||||
std.sort.pdq([]const u8, in, {}, cmpStringsDesc);
|
||||
}
|
||||
|
||||
pub const StringArrayByIndexSorter = struct {
|
||||
|
||||
Reference in New Issue
Block a user