andmcadams / iMessageForwarder

6 stars 1 forks source link

Memory consumption increases rapidly #7

Open andmcadams opened 4 years ago

andmcadams commented 4 years ago

This can consume a lot of memory very quickly if looking back through a very long text conversation. This seems to be due to the usage of tkinter widgets rather than the message list, since the message list is loaded when a chat is opened. Need to determine if this is from some sort of specific data (like images) or is a result of improper removal/addition of tkinter widgets.

andmcadams commented 4 years ago

This seems to have been mitigated by fixing issue #6, but there are still blocks of memory that are not freed up when a conversation is closed, hinting at some sort of leak persisting.

andmcadams commented 3 years ago

This really only becomes a problem when scrolling up through messages. Likely due to images, but too much text could also cause issues. Bumping space complexity down to O(1) by only showing messages in the current "view" is tempting, but would cause speed issues. Reducing image quality is another possible solution. This needs to be looked into to see how other applications handle this, as this is certainly not a new problem.