Hi Doug, This a meaningfull subject for serious SVG apps that generate 1000's of elements from XML data.
I posted an example file on this list awhile back that addressed 10,000 elements. see: xmlSVG10000.zip The basic approach was that a viewer wants to quickly see a sampling of the elements distribution, rather than the whole cookie, when they call the file at its initial scale of 1. They can't possibly view individual elements(and associated text) until they zoom in to a specific area of the drawing. By using Xml files to propagate the SVG document, as a viewer zooms into a specific segment and zoom level, you can load additional elements within their area of interest. If, in fact, the text elements are the culprit that slows down the zoom and pan response(which I am not aware of, but may be the case), you could consider using an onmouseover to display the text data rather than creating a bunch of text elements. Just some thoughts, and good luck, Francis <[EMAIL PROTECTED]> wrote: > > 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 > ----- 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/

