pyInotify 性能
我有一个非常大的目录树,我想要 pyInotify 来观看。 让 pyInotify 监视整个树更好,还是让多个监视报告特定文件的更改更好? 谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只想查看巨大树中的几个文件,那么查看单个文件是有意义的。另一方面,如果您要查看树中的几乎所有文件,则查看整个树更有意义。要准确了解转折点,您必须对两者进行基准测试,看看哪一个表现更好。
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.