You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each redraw of a Table instance consumes an average of 21kB RAM on an "empty" table.
With a filled Table it's even more.
To prove the problem, I wrote a small application which refreshes 100 times a second, calculates the average additional consumed memory and shows also the total consumed memory:
Commenting out line 311 in file core.py reduces the memory usage by 3kB per redraw.
Creating a new canvas on each redraw doesn't look like a good idea to me!
defredrawVisible(self, event=None, callback=None):
"""Redraw the visible portion of the canvas"""model=self.model#self.scratch = Canvas()self.rows=len(self.model.df.index)
self.cols=len(self.model.df.columns)
Great. Not sure why this line was ever needed to be honest. Thanks for taking the time to check that. I will make a minor update soon and add that change in.
Each redraw of a Table instance consumes an average of 21kB RAM on an "empty" table.
With a filled Table it's even more.
To prove the problem, I wrote a small application which refreshes 100 times a second, calculates the average additional consumed memory and shows also the total consumed memory:
The text was updated successfully, but these errors were encountered: