You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Carl Franklin Hall (Jira)" <ji...@apache.org> on 2020/01/05 00:17:00 UTC
[jira] [Updated] (DBUTILS-137) Inefficient allocation of Maps in
org.apache.commons.dbutils.BasicRowProcessor.toMap(ResultSet)
[ https://issues.apache.org/jira/browse/DBUTILS-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Franklin Hall updated DBUTILS-137:
---------------------------------------
Fix Version/s: (was: 2.0)
1.8
> 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 D. Gregory
> Assignee: Carl Franklin Hall
> Priority: Major
> Fix For: 1.8
>
>
> 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
(v8.3.4#803005)