Skip to content

Commit ea794cc

Browse files
committed
feat: Optimize sort by MergeSort
The `MergeSort` function is in the hot path. The slice (x[1..]) operation is not optimized in Dafny. This optimizes this function by turning the recursive slice into a loop over an index into the seq. Further, a bounded integer version is also included. It also limits the total amount of data copied.
1 parent b4a071a commit ea794cc

File tree

2 files changed

+529
-2
lines changed

2 files changed

+529
-2
lines changed

0 commit comments

Comments
 (0)