Skip to content

Commit

Permalink
Keep cligen a softer dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Jun 15, 2023
1 parent 8f690b2 commit a96898d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adix/nsort.nim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
## cheap compared to L2 or worse bandwidth costs. So, 5-20% boost, I'd guess.)

when not declared(stdout): import std/syncio
import bitops, math, algorithm, cumsum, cligen/prefetch
import bitops, math, algorithm, cumsum
when defined(cpuPrefetch): import cligen/prefetch # Keep cligen a soft-dep
const nTinySort{.intdefine.} = 24 # Usually 16-32 is good
const hMaxBits{.intdefine.} = 15 #2*counter-size*2**hMaxBits =~ L2 here
const dGiantSort{.intdefine.} = 15 shl 30 #~50% of uncontended DIMM storage
Expand Down

0 comments on commit a96898d

Please sign in to comment.