3 ms·
SVG is an incredibly inefficient way to represent a line drawing,with all the coordinates written out as text, and not as deltas from the previous one. Flash's
by Animats 7y ago
SVG is an incredibly inefficient way to represent a line drawing,with all the coordinates written out as text, and not as deltas from the previous one. Flash's internal representation is much tighter, but not cool any more.
- Filligree 7y agoThe parent is correct. At some point we gained a fear of binary formats, but binary formats are still the only way to transfer data efficiently. Yes, flash had other problems. No, this doesn't make their point false.
- deafcalculus 7y agoIs that really true with gzipping?
- gnud 7y agoBrowsers still need to unzip and parse the SVG, and store the DOM representation of it.
- mkl 7y agoSVG can do relative coordinates fine: "m 10 10" (m dx dy) rather than "M 10 10" (M x y). But yes, they're text until you compress them.
- tripzilch 7y agoYes, but unless you round the floating point digits, you're going to use about as much bytes.