Thomas DeWeese wrote:

   My best guess is that you are running into a caching issue.  The
DocumentLoader does cache documents that it has read in the past
(although normally this cache is 'cleared' between main document
loads).  It is mostly present so that if you pull in 50 symbols from
the same document we don't reparse that source document 50 times.

Jorg Heymans wrote:

Sorry that last sentence made my head spin a bit :)
Say i have a doc loaded for the first time with 10 <g> elements, each with 100 distinct <path> elements, how would this work then ? Why would you have to reparse the source document 50 times?

You wouldn't, but if instead of using path elements you used the 'use' element point to 'symbols.svg#sym1', 'symbols.svg#sym2',...

   Without the caching we would read the entire symbols.svg once for
each use element (something similar happens for image - because we
consider images static).  The caching allows us to only parse the
file 'symbols.svg' once and just lookup the symbols in the document as
needed.

   As I said it is unclear why the load cache isn't cleared between
loads of toplevel documents although this is the only thing I can
think of that might explain a large performace difference.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to