Re: dealing with very big (upto 1Gb) svg file

Stanimir Stamenkov <[email protected]> Sun, 14 Feb 2010 16:04:29 +0200
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
Sun, 14 Feb 2010 04:36:26 -0800 (PST), /meemsheen/:

> (...)
> If I just parse some 1000 lines from the input csv file the generated svg is
> about 50-100MB and I can 
> view it as I wanted, but when I parse more and more, the generated svg
> becomes very big and
> safari/firefox hangs to open this big svg file.
> I have 4GB RAM in my machine.
> 
> Any help to deal with this problem or do it in another better way will be
> much appreciated.

You may ensure you don't use formatting white space in the generated
SVG text which will make the built DOM much smaller, I guess.

If the data is really that big, may be generate and serve a bitmap
image, instead?  Or if it happens on the client side - one could
draw directly on a canvas:

https://developer.mozilla.org/en/HTML/Canvas

-- 
Stanimir