svg rendering takes up huge amounts of ram




13 years ago
11 years ago


(Reporter: bugzilla, Unassigned)


Windows XP

Firefox Tracking Flags

(Not tracked)




13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060508 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060508 Firefox/

I made a webpage with a list, every entry got a language so i decided to view a tiny flag next to it.
The list currently got about 400 entrys, when using SVG (with iframe-tag) opening firefox and displying that one page took up about 120 MB of ram.
Since those are flags there were only 5 different images, the US-flag made up about 95% of images displayed.
As a reference: the same page with the same image sizes as .gif took up 23 MB ram.

Reproducible: Always

Comment 1

13 years ago
Component: General → SVG
Product: Firefox → Core
Version: unspecified → Trunk

Comment 2

13 years ago
afaik there is a lot of work going on to reduce the memory usage.
but remember, as opposed to raster images, for any instance of an SVG, a complete DOM has to be build and kept in memory. so naturally the RAM usage will allways be higher than for rasters.

Comment 3

13 years ago
of course .. the svg is even 4x the size of the gif already ...
but about 100 extra MB ram for 400 images (350 of those being the same pic over and over again, just to remind you) is not really nice.
also it slows scrolling on a sempron 3400+ considderably ^^

Comment 4

13 years ago
check my last comment here:
i think resolving that bug would solve your problem , too.
Assignee: nobody → general
QA Contact: general → ian
There isn't much point in keeping this bug open in its current state. We know we have general issues with memory usage, but this bug doesn't reference any specific testcase for us to focus on, so it's not useful. If you provide a specific example for us to work on, Florian, then great. Otherwise I'm going to close this as INCOMPLETE for now. That doesn't mean we won't be working on memory usage. We will.
Last Resolved: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.