xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46360] New: Thread-safety issue rendering SVG
Date Sun, 07 Dec 2008 13:55:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46360

           Summary: Thread-safety issue rendering SVG
           Product: Fop
           Version: 1.0dev
          Platform: All
               URL: http://markmail.org/message/2dk2ib4e5t6vfsrl
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: svg
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: jeremias@apache.org


FOP reuses/caches SVG documents to improve performance. But as we had to learn,
this approach is not thread-safe as Batik attaches some facilities (like the
CSS engine) to the DOM which are not thread-safe. The detailed discussion of
the issue can be found here:
http://markmail.org/message/2dk2ib4e5t6vfsrl

The safest approach is to clone the SVG DOM prior to passing it to Batik.

Obviously that will cost a bit of performance and increase memory usage a bit.
If we're careful and have the resources to implement that we can improve
performance by caching Batik's GVT tree. Ideas can also be found in the thread
indicated above.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message