switch to sortUnstable when sorting FDEs (~16ms improvement)

This commit is contained in:
kcbanner 2023-07-24 23:27:05 -04:00
parent d1ed1c167b
commit ab2e0b927d

View File

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