Reputation: 379
Yesod development server "yesod devel" on my system(arch linux) uses more then 30%-50% cpu when idle (watching for changed files). I'm guessing it is polling info about changed files from disk? I read a post a year ago about adding hinotify (yesod 1.0.1 was forked with this change yesod fork) and I see that newer yesod version (1.1.9.3) has fsnotify added (which is the same thing, but cross platform). I read somewhere that it works with the fallback described above (reading changes from disk) so does anyone know if this could be the case?
First I thought it was garbage collector running, but I run yesod devel with GC off but with no success.
Upvotes: 5
Views: 261
Reputation: 3428
yes, it is file watching, which may have issues and fallback to polling depending on your setup. You can use the -t option to specify a polling interval instead
Upvotes: 2