Skip to content

Commit 7dc718c

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 1d836c9 commit 7dc718c

File tree

2 files changed

+529
-2
lines changed

2 files changed

+529
-2
lines changed

0 commit comments

Comments
 (0)