patrick-motard / dotfiles

My dotfiles
The Unlicense
19 stars 8 forks source link

yadm-checker is too cpu intensive #105

Closed patrick-motard closed 3 weeks ago

patrick-motard commented 5 years ago

In a vm, on very little cpu, yadm-checker uses too much cpu. I have reduced the interval in polybar to call yadm-checker to once every 10 seconds for a short term fix. It seems like the most intense part is the diff between remote and local commits.

I think it might be a good idea to have the script accept input, and push information to it from git hooks in yadm instead of it polling yadm (git) constantly.