[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7066) Improve memory allocation on String extraction out of Clob fields

Sanne Grinovero (JIRA) noreply at atlassian.com
Tue Feb 14 11:04:09 EST 2012


Improve memory allocation on String extraction out of Clob fields
-----------------------------------------------------------------

                 Key: HHH-7066
                 URL: https://hibernate.onjira.com/browse/HHH-7066
             Project: Hibernate ORM
          Issue Type: Improvement
            Reporter: Sanne Grinovero
            Assignee: Sanne Grinovero
             Fix For: 4.1.1
         Attachments: Overhead of DataHelper String extraction from Clob.png

Extracting a large String out of a Clob makes use of the org.hibernate.type.descriptor.java.DataHelper, which allocats StringBuilder to create the extracted String instances.
Adjusting the initial size of the StringBuilder according to expected / known data size can have a good performace impact, as shown in the attached screenshot from a profiler session.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list