Gary Gregory created DBUTILS-137:
------------------------------------
Summary: 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
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)