mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
switch to sortUnstable when sorting FDEs (~16ms improvement)
This commit is contained in:
parent
d1ed1c167b
commit
ab2e0b927d
@ -1638,7 +1638,7 @@ pub const DwarfInfo = struct {
|
||||
}
|
||||
}
|
||||
|
||||
std.mem.sort(FrameDescriptionEntry, di.fde_list.items, {}, struct {
|
||||
std.mem.sortUnstable(FrameDescriptionEntry, di.fde_list.items, {}, struct {
|
||||
fn lessThan(ctx: void, a: FrameDescriptionEntry, b: FrameDescriptionEntry) bool {
|
||||
_ = ctx;
|
||||
return a.pc_begin < b.pc_begin;
|
||||
|
Loading…
Reference in New Issue
Block a user