Thanks Thomas for your response.  "A small fraction of the time," yes,
this is the sort of big improvement I'm looking for.  I'd like to not
lose the ability to track events on individual elements though.  It
may come down to compromising functionality and performance.

And you're the first of two developers who mentioned text rendering as
a possible bottleneck when a great number of individual text elements,
say > 1,000, are present.

Thanks again,
Doug

--- In svg-developers@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> Hi,
> 
>    A single path with a thousand line segments (M x11,y11 L x12,y12
M x21, 
> y21, L x22, y22, ...)
> will display/update in a small fraction of the time that a thousand
line 
> elements will
> (they will also take much less memory).
> 
>    Another trick is to replace the circle elements with a single
path with
> a circle Marker.  Then the path will be just move commands.
> 
>    The drawback to both of these is that you lose the ability to track 
> events, set properties
> etc. on individual elements.
> 
>    Finally it wouldn't surprise me if the text was a major part of the 
> rendering time.
> You might try 'removing' elements from the document to see what makes a
> difference.  You can play a similar game with text where you can
have all
> of your text in one element and use 'tspan' to position each piece 
> separately.
> I am less certain of the win in this case.
> 
> svg-developers@yahoogroups.com wrote on 02/22/2006 12:04:38 PM:
> 
> > run2bmi21 schrieb:
> > 
> > > Hi,
> > >
> > > Does anyone have any hints on improving response times from ASV when
> > > SVG file has about 5,000 elements?  The elements are simple lines
> > > (4,000) and circles (1,000).  For every circle, there's a word
or two
> > > of associated text, positioned just below the circle.
> > >
> > > Just wondering whether something as simple as not filling the
circles
> > > with color (fill="none") may help ASV response times.
> > >
> > > Currently, the behavior I'm seeing on a Dell Latitude D610 laptop
> > > (i.e. a new laptop with average CPU) is about a 5 second delay in
> > > image appearance after file has completely loaded.  Also,
significant
> > > zoom and pan delays, say 3-5 seconds on a zoom, and extremely
> > > lethargic panning.
> > >
> > > My guess is, since line elements are the most numerous in the
> > > SVG, that I should concentrate on optimizing them, but they're
already
> > > perhaps as simple as they're going to get, e.g.
> > >
> > > <line stroke="#bbbbbb" visibility="visible" id="edge1to0" x1="100"
> > > x2="100" y1="100" y2="2600" stroke-width="2"/>
> > >
> > > And a typical circle in the SVG looks like:
> > >
> > > <circle fill="red" fill-opacity="1.0" stroke="#bbbbbb"
> > > stroke-width="2" id="vertex0" cx="100" cy="2600" r="76"/>
> > >
> > > Does it take ASV a longer time to render an object positioned on the
> > > canvas with x,y coordinates with decimal values such as 34.56
instead
> > > of 34?
> > >
> > > Thanks in advance for any thoughts.
> > >
> > > Doug
> > 
> > hi Doug
> > 
> > have you tried shape-rendering="optimizeSpeed" ?
> > putting this into your <svg> Element, will cause your graphic to be 
> > drawn without antialising.
> > usually this will speed up thinks significantly, at the cost of 
> accuracy.
> > 
> > hth
> > Holger
> > 
> > p.s.: you might want to look at this fine paper by one of the main
ASV 
> > developers, which gives some hints on increasing perfomance:
> >        http://www.svgopen.org/2002/papers/sorotokin__svg_secrets/
> > 
> > -- 
> > if this information was usefull, please try to help someone else !
> > http://www.treebuilder.de
> > 
> > 
> > 
> > -----
> > To unsubscribe send a message to: 
> [EMAIL PROTECTED]
> > -or-
> > visit http://groups.yahoo.com/group/svg-developers and click "edit my 
> membership"
> > ---- 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> >
>






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to