paul-nameless / nim-fswatch

Nim wrapper for the libfswatch
GNU General Public License v3.0
18 stars 1 forks source link

how to enable noDefer? #4

Closed tiye closed 3 years ago

tiye commented 3 years ago

I'm using this library and experienced many times of slow responding. I thinks it's a problem in libfswatch but turned out it's a default behavior from according to https://github.com/emcrisostomo/fswatch/issues/230 . It sounds like we can change this behavior with a flag. Can I turn on noDefer in this library?


updates...

Seem it's making difference when I try fsw_set_latency...

discard mon.handle.fsw_set_latency 0.2
paul-nameless commented 3 years ago

So setting latency resolved your problem?

tiye commented 3 years ago

I think so... it's quite responsive right now.

paul-nameless commented 3 years ago

Okay, I'll close it for now,. You are welcome to reopen the issue if needed)