Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Ted.js - better file watching #4

Open
Marak opened this Issue Jun 11, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

Marak commented Jun 11, 2010

Ted's current directory watcher is not ideal. We are using nodes sync filewatcher api on several nested files and directories in a loop. We are also unwatching these same items with the sync filewatcher.

There is a bit of an OS race condition here with MacOS's filesystem and the file watcher which is currently being solved with a forced delay. I think if we switch to the macs native FSEvents (http://en.wikipedia.org/wiki/FSEvents) we'll get much better performance and response time from Ted.

Owner

Marak commented Jun 16, 2010

There also seems to be an issue when creating new folders and new files that causing a double bind to occur. I think a directory might be being watched but not unwatched? not entirely sure why its double binding. we should switch to FSEvents first perhaps and then track down this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment