https://github.com/kirbyfan64/fcp
Honestly, I was happy (and surprised) with how fast Nim was. I tried rewriting it to use Boost, and the result was actually slower! Also, the compile times (or at least the time between typing nimble build and seeing what I did wrong) were pretty fast.
Tested the speed :
Compiled with maxthreads = 12
Times for my test directory 658 MB average of 10 runs
dst dir does not exist fcp/rsync : 3.80 secs / 4.58 secs dst dir does exist with files fcp/rsync : 8.75 secs / 0.046 secs
rsync -a -u -progress -v src dst
# command line was : nim c --threads:on fcp.nim
fcp.nim(64, 38) Error: type mismatch: got (int literal(1))
but expected one of:
threadpool.^(fv: FlowVar[ref T]): ptr[foreign, T]
threadpool.^(fv: FlowVar[T]): T
var dstfile = dst / path[src.len .. ^1]
I can't see anything in the documentation that explains what ^1 is.
@kirbyfan64sos: Can you enlighten me?