Hi Randy,
The file I was working with was actually quite strange, so the changes
may not be useful to everyone. But, here goes...
1. The SVG file had a really weird size/scaling issue. The viewBox and
coordinates were scaled to around 12 billion.<shrug/>
Moving these numbers to more reasonable values seemed to make a
difference on initial rendering in the Batik 1.5 betas. (I don't
remember which versions).
2. The file also referenced definitions in another SVG file that had
a large number of unused definitions. Something like referencing
a dozen or so items from a file that contained a few thousand.
This required doing a separate parse of a fairly large file, most
of which was thrown away.
This was all after correcting mistakes in the SVG which were caught
by Batik and might have been allowed in another viewer.
It is probably obvious, but I've also seen the <feTurbulence/> filter
have significant effects on the time to render a page. Understandable,
of course, but it was still a bit of a surprise until I thought about
it.<shrug/>
Hope that helps,
G. Wade
On Fri, 19 Dec 2003 12:59:00 +0100
"Baron, Randy {PRG~Basel}" <[EMAIL PROTECTED]> wrote:
> Hi G. Wade,
> I'm just curious...what kinds of things could you do to speed up
> the
> SVG?
> I also have speed problems and would be interested in anything that
> might help.
>
> -Randy
>
> -----Original Message-----
> From: G. Wade Johnson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 18, 2003 9:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Large SVG image displaying with a JSVGCanvas.
>
>
> I have displayed a 10MB SVG file before with Batik. It did require
> setting more heap memory and it took a long time to load (around 1
> minute on ~2GHz machine). But, it could be done.
>
> I was able to speed this up quite a bit with modifications to the
> original SVG.
>
> G. Wade
>
> On Thu, 18 Dec 2003 20:06:47 +0100
> "jlp.petit" <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I would like to know how to manage the display of a large SVG file,
> > a world map for example. My application has cartographic
> > functionnalities such as a zoom. So I need a large SVG map file. Is
> > it
>
> > possible to load only a part of a large SVG map file with a standard
> >
> > Batik API in a JSVGCanvas or is it required to make some extra
> > developpement ?
> >
> > Is it better to have a large SVG map or a to have many small SVG map
> >
> > files to avoid too much memory use ?
> >
> > I would very appreciate if some one who has been faced to the same
> > problem could answer me.
> >
> > Currently I have a world map ; the SVG file is about 150 ko and my
> > application based on Batik works quiet fine. But the map has not
> > enough details.
> >
> > Best Regards
> >
> > Jean-Luc Petit
> >
> >
> >
>
>
> --
> A language that doesn't affect the way you think about programming is
> not worth knowing. -- Alan Perlis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
I have this feeling, that my luck is none too good.
-- "Black Blade", Blue Oyster Cult
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]