Skip to content

Commit

Permalink
Set cutoff bytesizefor recursive Robustsort more accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
kaBeech committed Aug 14, 2024
1 parent 0b9d55b commit 1835462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Tensort/Robustsort.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ getLn x = ceiling (log (fromIntegral x) :: Double)

robustsortRecursive :: Int -> SortAlg -> SortAlg
robustsortRecursive bytesize baseSortAlg
| bytesize <= 27 = baseSortAlg
| bytesize <= 528491359 = tensort (mkTsProps (getLn bytesize) (baseSortAlg))
| otherwise = tensort (mkTsProps (getLn bytesize) (robustsortRecursive (getLn bytesize) baseSortAlg))

0 comments on commit 1835462

Please sign in to comment.