Low performance to load a svg file with many <use>

TAUVEL Jeremie <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <0CF3DC3159572A4FB1A46CA2DB0751CF1ADB8F037C@PRI-MBX-101.dom1.vinci-energies.net>
Hello,

I have a svg file with a high number of <use> and it takes a long time to load that document.

So, when I analyse where the time is lost, I see that the importNode() and the events handler in the buildCompositeGraphicsNode() function in SVGUseElementBridge class  are the most consumer of time.

For the events handler, it is the dispatchEvent() and fireEventListeners() in EventSupport class where time is lost, a high number of call is made.

If anybody have an idea to improve the performance, his help will be very appreciate.

Thank you very much.

Jeremie.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.