Bug 61350

Summary: Use unsynchronized xmlbeans
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: OPCAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.17-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Andreas Beeker 2017-07-26 22:06:13 UTC
As suggested in SO [1] and discussed in the mailing list [2], I'll activate the unsynchronized mode in the XmlBeans options.


[1] https://stackoverflow.com/questions/45082014/
[2] http://apache-poi.1045710.n5.nabble.com/Unsynchronize-xmlbean-calls-td5728316.html
Comment 1 Andreas Beeker 2017-07-26 22:16:25 UTC
applied via r1803120
Comment 2 Dominik Stadler 2017-08-24 19:06:24 UTC
Regression tests showed that this causes multi-threading issues when handling different files in separate threads, therefore we cannot apply this generally. 

Thus this will be reverted for now.

Anybody who wants to use this performance tuning in a single-threaded application can do so by adding the following call before invoking any POI related code:

    org.apache.poi.POIXMLTypeLoader.DEFAULT_XML_OPTIONS.setUnsynchronized();