On Feb 6, 2011, at 4:01 AM, Mahen wrote:
I tried to load my document again, and noticed Inscape was almost filling my 4 GB of ram. I tried to do the very same thing with OpenOffice draw and the memory usage was "only" of 0.7 GB.
I definitely guess Inkscape is not meant for importing tons of pictures, but I was wondering whether there was some kind of memory leak or waste triggered by this particular scenario and if you think I should make another bugreport ?
Yes, memory use was a major factor discussed when we were going over linked vs. embedded. If you were seeing this while linking in the images, we'll have a larger problem. On the other hand if the images were actually embedded, some such bloat was expected. This is part of why the consensus was to avoid switching to always embedding until we had such issues covered, but someone went ahead and flipped things in the code anyway.
To get a rough idea of memory use, just multiple image width in pixels by height in pixels times four and you get the rough minimum buffer needs. Also add in on-disk image file size times four and divided by three. This gives the string size needed for the XML string embed itself.
So the first question is are they linked or are they embedded. Second question is if you calculate the rough memory needs for all of those 35 images do they start to hit the limits of your machine?