I think a lot of my early testing of this package was using sync api which made me think it was not that fast.
It's common for a Node dev to reach for sync apis for file access in cli tools...as you wouldn't normally think async would give speed gains, unless you are running in a webserver where you don't want to block the event loop.
But for fdir it offers huge benefits in speed when the threadpool is increased. On macOS at least.
I think a lot of my early testing of this package was using
sync
api which made me think it was not that fast.It's common for a Node dev to reach for sync apis for file access in cli tools...as you wouldn't normally think async would give speed gains, unless you are running in a webserver where you don't want to block the event loop.
But for
fdir
it offers huge benefits in speed when the threadpool is increased. On macOS at least.UV_THREADPOOL_SIZE=8
UV_THREADPOOL_SIZE=2
Crazy its set so low. https://www.sebastienvercammen.be/your-libuv-thread-pool-size-is-too-small/
Also, make a note of increasing
UV_THREADPOOL_SIZE
.