Stigmatoz / web-activity-time-tracker

Chrome Extension that tracks and limits time you spent on sites
https://chrome.google.com/webstore/detail/web-activity-time-tracker/hhfnghjdeddcfegfekjeihfmbjenlomm
MIT License
757 stars 115 forks source link

Better performance #101

Closed d-bucur closed 1 year ago

d-bucur commented 1 year ago

Looking at the task manager the extension regularly is one of the top utilizers of CPU with spikes of 3-6%.

image

While I like the extension, I do feel that this has an unnecessary impact on my battery life, and should not be this high for what it is doing.

I would like for a way to reduce this, if not with proper optimizations, at least with a band aid like an option to increase the tick intervals to something like 10-30 seconds. I can really live without it not persisting data to a db every 5 seconds.

d-bucur commented 1 year ago

I can also have a look at it and submit a PR for this if there is interest to merge it.

Stigmatoz commented 1 year ago

A new version with a new codebase was released yesterday, so let's try to use this.

d-bucur commented 1 year ago

I tried the new version, but I don't see any improvement. There are 5% spikes every 5 seconds and the intervals are still 1s/5s in the new version. It's regularly one of the top CPU users in the task manager