With all the new screen densities, we all want a good way to not have n
versions of each icon in the tree. Short story: SVG is not (yet) that
good way.
So please do not add SVG files in the tree.
Reviewers: Do not accept SVG files.
Short explanation: SVG slows down app launch, uses more memory and that
memory is not freed when the app is in the background.
-------------
Long explanation
At [1], you'll find the about:memory dumps for a file with 200 PNGs, 200
SVGs or 200 paragraphs with the letter a.
Load times:
SVG: ~4500ms
PNG: ~1600ms
Text: ~850ms
Memory when the app is foreground:
SVG: 41.24MB
PNG: 10.41MB
Text: 8.15MB
Memory when the app is in the background:
SVG: 40.54MB
PNG: 9.06MB
Text: 8.07MB
You can do the benchmark again by putting the _index.html file in the
template app and switching the image to use.
Background was measured after opening the app and pressing the home button.
Foreground was measured after opening the app, pressing the home button
and opening the app again.
If anyone sees anything stupid about this benchmark, let me know.
[1]
http://ricaud.me/mozilla/svg-benchmark/