Significant memory leak during use
What Happened?
System monitor indicated the memory usage of Code (flatpak) on start up was around 30Mb. After using for development for a while I noticed the memory usage was approaching 1Gb. The only extension activated was "Outline". Autosave was on.
Steps to Reproduce
- Start Code and note memory use
- Use intensively for a while
- Note memory use
Expected Behavior
Memory usage should only increase moderately and should mostly be recovered when documents and projects are closed.
OS Version
6.x (Odin)
Software Version
Compiled from git
Log Output
No response
Hardware Info
No response
Seems to be caused by a combination of the autosave behaviour and the outline plug which causes megabytes of memory loss for every character entered (!) once it starts happening. Both things need to be active for it to start but once it starts happening disabling either of these behaviours does not stop it however.