From: <leg...@at...> - 2003-06-20 06:11:52
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-146 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-146 Summary: Eliminate array creation for single column queries Type: Patch Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.1 Assignee: Reporter: Chris Nokleberg Created: Fri, 20 Jun 2003 1:11 AM Updated: Fri, 20 Jun 2003 1:11 AM Description: IteratorImpl currently created a new Object[] for each row returned from a query. For single column queries the iterator then just pulls the single value out of the array before returning it. This patch removes the array creation for single column queries. BTW, why was the decision made to use a new array for each row? Even in the case of multiple value queries, it would be much more efficient to reuse the same array. The user could copy the values into a new array if so desired. It's probably too late to change this, unfortunately... --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |