-
Notifications
You must be signed in to change notification settings - Fork 242
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
update with latest listen version #333
Conversation
I just wanted to suggest that the best way to optimize polling is to "intelligently" avoid directories which haven't changed. Listen has a Record class, but currently it does not store enough directory information to make this work (needs to be implemented). If your use case is slow (for whatever reason) - open an issue and let me know. |
Hi, Thanks for your reply. Actually the work I am doing after I receive the I just wanted to suggest that the best way to optimize polling is to If your use case is slow (for whatever reason) - open an issue and let me — |
What I meant is that Polling does probably way too many unnecessary checks - most could be avoided if information in directory entries are checked. But that probably doesn't matter in your case...
That's weird. I understand turning off Access time, but not updating the Modified time seems really strange. If the file isn't too big, you could consider the md5sum check instead. Unless the file is huge, hashing with MD5 is actually quite fast - it's worth testing with debugging options on (to see the overhead). As for wdm vs jruby-notify, Listen is more of a "platform independent wrapper" - so if you're using JRuby on Windows (which seems like a rare use case), you can probably just use jruby-notify directly. Otherwise, I'd switch to using MRI on Windows if possible (unless you have a really good reason to stick with JRuby). I'm a Linux guy, so I'd prefer not to "touch" anything regarding the Windows implementation, because I can't test those properly. But if you have any insights/issues (or useful PRs) - let me know. |
Yea it really is strange that the modified time never gets changed. I can't Thanks for your help On Tue, 4 Aug 2015 at 15:17 Cezary Baginski notifications@github.com
|
Yeah, SMB makes the request for the file. Setups with network folders and/or VMs are tough to optimize. I opened an issue here: #335 It's not critical, so I probably won't have time to implement it - but if you reduce/improve the PR, I could add the specs/tests and try and get this tested and released. I'm sure you're busy with a project (and so am I), but if you do find time to make these changes and test them (so they are generic for everyone), I'm sure a lot of people will benefit (even on OSX or on FAT, where hashing is hit more often). Suggestions for PR:
Anyway, I'm glad Listen is working for you. Have a nice day. |
The modifications aren't too long to implement so i decided to do them. On Tue, 4 Aug 2015 at 17:34 Cezary Baginski notifications@github.com
|
Thanks - I'll probably have to refactor the directory entry comparing completely, since the file class is getting a bit too complex. |
No description provided.