@Banana_Woof I agree with the sentiment of this memory behavior being strange, but I’m not quite sure what it could be attributed to.
It sounds like this is a specific file you’re working with, but are you noticing these types of memory issues across multiple ones?
One culprit may be having a single icon component used as a library element to hold all icons rather than each icon as an individual component and using instance swapping.
Ran into this on a file when switching over to Figma. Relatively simple files but the icon library component had multiple sizes and colors as variants of each icon. That was then nested as needed in components like cards with multiple instances.
Our simple card grids started taking up lots of memory because the icon library was making every instance exponentially larger.
Hope that helps, it was a painful lesson late in our project.
After some more testing, I have concluded that a big chunk of the memory size bloating up was in fact adding “stroke” to my text. The project is very much text heavy and not image heavy.
However, this does not answer for point 2. where the memory size would remain high even if I deleted everything. I can also copy an entire Frame and then delete it, only to paste a few times and then “bloat” up my project to insane levels of memory size, despite nothing new actually being added.
This would suggest that there is some kind of memory leak/bloat in the version of Figma that im using and I cant seem to share which cause I cant find any version number. I have tested this behavior across three projects now, and it can be achieved by all of them.
Got it – this does sound buggy, but I’m not going to be able to replicate or test this out via the forum; It does sound like there are some specifics in your instance that are causing the memory issues, and I would definitely encourage you to file a support ticket (you can refer to this forum topic to note the details instead of having to type everything up again).
You can file that here: https://help.figma.com/hc/en-us/requests/new?ticket_form_id=360001744374