-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does this compare to Chokidar? #18
Comments
@danielbayley |
for anyone who is curious |
Chokidar may cause EPERM problem on windows which is likely an issue of fs.watch. Since NSFW is based on Windows's native implementation, so I guess it should avoid this kind of issues ? |
@ChrisFan |
How does this compare to Watchman? https://github.com/facebook/watchman One benefit I've seen of watchman over something like node-watch is that watchman is faster and consumes significantly less memory (~10M) even for big projects. Does this library offer something comparable? |
@kumarharsh
And that really no one wants in the node universe. One NPM install should get you what you need. |
Yeah, I got that, and it is actually rather irritating in the watchman style of installation - but it's still a one-time thing and the installation of watchman server isn't so big an issue for most people. I wanted to know from a performance perspective, what kind of a memory footprint nsfw has for larger projects - if there's some benchmark for it. |
Well, I have never seen a benchmark neither. Just their Axosoft's blog post and the discussion at reddit. Did you read that? It tells you already allot of what makes chokidar slow. Would be cool if some core contributors could join the discussion? |
The benefit watchman does provide is that the client-server model lets me run webpack, linters, etc all on the same code which won't spawn different watchers everytime - thus not compounding the memory/cpu consumption issue. Of course, any library which doesn't use this kind of architecture can't really offer those kind of performance benefits. So, I just wanted to see how nsfw compared to other node watchers. I couldn't find any perf benchmarks, but came to know about nsfw via the vscode repo, where a |
watchman having to install an OS level service is entirely a deal breaker for a great many projects. |
@AndyOGo |
I wasn't able to form a conclusion from the README of how this differs from Chokidar and in what circumstances I would choose one over the other. A brief comparison would be useful.
The text was updated successfully, but these errors were encountered: