Bug 47999

Summary: PATCH: OpenXML4j OPCPackage calls Runtime.getRuntime().gc() which is considered a perfomance bottleneck
Product: POI Reporter: Marcus Thiesen <marcus>
Component: POI OverallAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.5-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Patch to remove Call

Description Marcus Thiesen 2009-10-15 00:17:01 UTC
OpenXML4j causes a lot of unnecessary garbage collection on our system
which leads to performace losses.

Apparently, according to the latest JavaDoc [1], a call to
Runtime.getRuntime().gc() causes a full heap garbage collect, which
isn't what you usually want in any longer running application. The
runtime knows when to garbage collect.

[1]: http://java.sun.com/javase/6/docs/api/java/lang/Runtime.html#gc()
Comment 1 Marcus Thiesen 2009-10-15 00:18:33 UTC
Created attachment 24380 [details]
Patch to remove Call
Comment 2 Nick Burch 2009-10-16 06:37:32 UTC
Thanks for this patch, I've applied it to trunk. Do shout if you find any more performance things like this!