commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DBUTILS-137) Inefficient allocation of Maps in org.apache.commons.dbutils.BasicRowProcessor.toMap(ResultSet)
Date Sun, 24 Dec 2017 19:02:00 GMT

     [ 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)

Mime
View raw message