I have a very large directory tree I am wanting pyInotify to watch. Is it better to have pyInotify watch the entire tree or is it better to have a number of watches reporting changes to specific files ? Thanks
A:
If you're going to watch only a few files in a huge tree, it makes sense to watch individual files. On the other hand, if you're going to watch almost all files in the tree, watching the entire tree instead makes sense. To know the point of turn exactly, you must benchmark both to see which one performs better.
nosklo
2010-03-26 21:18:02
Thanks for the answers. The reason I haven't benchmarked anything yet is that I am still at the planning stage. I was wondering design wise which pyInotify was happier with
tranimatronic
2010-03-29 20:07:21
@tranimatronic: That's exactly my answer - What makes `pyinotify` happy depends on the exact situation and can only be deduced by benchmarking.
nosklo
2010-03-30 03:55:19