the-hobbes / website_time_tracker

A chrome extension to track where you spend your time on the web.
Other
3 stars 1 forks source link

Improve performance of history timeslicing #13

Closed the-hobbes closed 9 years ago

the-hobbes commented 9 years ago

Although we now retrieve an accurate amount of items from the history api with the inclusion of the maxResults parameter in the api call, the amount of results we are retrieving is causing performance issues. We need a way to mitigate these issues. Ideas include:

the-hobbes commented 9 years ago

Testing show that:

API retrieval took: 18.58199998969212 milliseconds. Visit processing took: 22.45500002754852 milliseconds.

the-hobbes commented 9 years ago

I want to avoid having to call buildHistoryItemList() each time the timeslice is changed.

the-hobbes commented 9 years ago

Also, investigate possible performance increases by not creating li nodes for each item and using regex instead, as well as optimizing the code.

the-hobbes commented 9 years ago

Seems to be somewhat improved now. I'm sure we can get better, but I'd like to keep the fact that it updates instantaneously, which would be hard to do if we weren't fetching the entire updated chrome history each time.