Re: performance question

2004-11-17 Thread Thomas DeWeese
Jorg Heymans wrote: Not sure if i understood what you meant here. I printed out the class reference of the svgdoc generated by me *before* and *after* (using canvas.getSVGDocument ) the setSVGDocument call, both are the same ([EMAIL PROTECTED]) This is a good test. If you get the same object

Re: performance question

2004-11-17 Thread Jorg Heymans
Hi, Not sure if i understood what you meant here. I printed out the class reference of the svgdoc generated by me *before* and *after* (using canvas.getSVGDocument ) the setSVGDocument call, both are the same ([EMAIL PROTECTED]) When i print the implementation i get for both [EMAIL PROTECTED]

Re: performance question

2004-11-17 Thread Thomas DeWeese
Hi Jorg, So I have one thought, it is possible that you are winding up with two independent instances of the SVGDOMImplementation. So code within the Batik toolkit is getting one and your code is getting a different one. This would cause the check in setSVGDocument to fail. The best way to c

Re: performance question

2004-11-17 Thread Jorg Heymans
Thomas DeWeese wrote: 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. Thanks for this. Here is some annotated logging output from my applet, the differe

Re: performance question

2004-11-17 Thread Thomas DeWeese
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

Re: performance question

2004-11-17 Thread Jorg Heymans
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

Re: performance question

2004-11-17 Thread Thomas DeWeese
Jorg Heymans wrote: Robert Marcano wrote: I have not checked the implementation of setURI(), but colud you try using a BufferedInputStream Thanks for the suggestion, there is a marginal improvement but not quite what i had hoped for. The documentloader class seems to be doing exactly what i'm do

Re: performance question

2004-11-17 Thread Jorg Heymans
Robert Marcano wrote: I have not checked the implementation of setURI(), but colud you try using a BufferedInputStream Thanks for the suggestion, there is a marginal improvement but not quite what i had hoped for. The documentloader class seems to be doing exactly what i'm doing ie instantiate

Re: performance question

2004-11-17 Thread Robert Marcano
On Wed, 2004-11-17 at 13:18 +0100, Jorg Heymans wrote: > Hi, > > Am i correct in saying that (batik running in applet environment) > > mycanvas.setURI() > > is much faster than > > Document doc = new SAXSVGDocumentFactory().createSVGDocument(uri, > connection.getInputStream()) > mycanvas.setDo