poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55882] Severe performance degradation when writing large numbers of custom properties to .DOCX/.XLSX files
Date Sun, 22 Dec 2013 00:12:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55882

--- Comment #4 from Andreas Beeker <andreas.beeker@gmx.de> ---
To solve this, there are two ways:
- either we introduce some kind of hash map caching of the underlying
properties, and have to make sure that the map is synced when somebody changes
something underneath
- or you call the getUnderlyingProperties() method and fill the underlying
properties yourself

Although always iterating over props.getProperties().getPropertyList() is
probably the reason for that bad performance, I'm a bit reluctant to implement
a caching method here, as the second method is probably sufficient for your
case and I don't need to worry about syncing.

Please correct me, if I'm totally wrong, but I think, that these many
properties aren't usual and to move the logic into users code is ok.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message