CPU usage seems high
Closed this issue · 2 comments
opeeba commented
Regardless if I am playing music, autoplay has CPU usage of 7-15%. Please let me know what I can do to better profile what is causing the constant usage.
Some MPD server info:
Artist names: 3377
Album names: 4203
Songs in database: 52637
codl commented
Try this:
sqlite3 /your/music/directory/.autodb "select * from songs" | wc -l
Does it output 52637?
You could try changing delay = 0.8
to a higher value like 5 in autoplay.py
Also make sure you don't start it as autoplay -u
opeeba commented
The output is 52637. Also, I am not starting autoplay with the -u option.
After changing delay to 5, cpu usage is between 0-3% most of the time. It briefly peaked at 11% when it recorded a listened track and the highest peak I saw when autoplay added 10 tracks was 40%, mostly ranging from 15-35%.
Thanks.