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:
Jarred Sumner
2023-12-11 04:49:21 +01:00
committed by GitHub
parent 3aabe58180
commit 351810e5bc
16 changed files with 34 additions and 34 deletions

View File

@@ -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 {