[
https://issues.apache.org/jira/browse/DBUTILS-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory closed DBUTILS-137.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0
In Git master.
> Inefficient allocation of Maps in
> org.apache.commons.dbutils.BasicRowProcessor.toMap(ResultSet)
> -----------------------------------------------------------------------------------------------
>
> Key: DBUTILS-137
> URL: https://issues.apache.org/jira/browse/DBUTILS-137
> Project: Commons DbUtils
> Issue Type: Bug
> Affects Versions: 1.7
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Fix For: 2.0
>
>
> In the method
> {{org.apache.commons.dbutils.BasicRowProcessor.toMap(ResultSet)}}, Maps
> (specifically our own {{CaseInsensitiveHashMap}}) are allocated but the
> column count is NOT taken into account to size the map. This will either
> over-allocate the map for narrow results or the map will have to be resized
> for wider results.
> The fix will use the column count to allocate an exactly sized map.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)