ngerritsen / timiks

GNU General Public License v3.0
13 stars 5 forks source link

The TimeTable component is rendered too often #35

Closed Jobarion closed 4 years ago

Jobarion commented 4 years ago

While debugging the performance of the graph/stats components I noticed that the stats are redrawn (and recalculated) too often:

Because calculating the stats is a very expensive operation this would be a useful thing to optimize. I will try to look into that a bit more.

ngerritsen commented 4 years ago

Is the stats calculation actually ran twice? Because the selector itself is memoized.

Jobarion commented 4 years ago

Yes, the stats calculation ran twice.

ngerritsen commented 4 years ago

Cool, well let me know what you find!