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

Sanne Grinovero (JIRA) noreply at atlassian.com
Wed Feb 15 11:58:09 EST 2012


     [ https://hibernate.onjira.com/browse/HHH-7066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero resolved HHH-7066.
----------------------------------

    Resolution: Fixed

> 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