openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2353) Reduce object allocations
Date Mon, 18 Mar 2013 21:47:15 GMT


ASF subversion and git services commented on OPENJPA-2353:

Commit 1458027 from curtisr7
[ ]

OPENJPA-2353: Reduce object allocations in DetachManagerLite.
> Reduce object allocations
> -------------------------
>                 Key: OPENJPA-2353
>                 URL:
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel, performance
>    Affects Versions: 2.3.0, 2.2.2
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>            Priority: Minor
>             Fix For: 2.2.2
> While trolling through some object allocation profiles I found two places that we can
greatly reduce object allocations for most applications. 
> The first is in BrokerImpl.initializeOperatingSet(). In this method we ALWAYS create
a new IdentityMap, regardless of whether we use it or not. This map is used for cascading
operations and isn't used otherwise.
> The second improvement comes in when initializing a new Entity. During loading of an
Entity, we will allocation three BitSets, one to keep track of clean fields, one for dirty,
and another for flushed fields. In the event that we don't dirty / flush anything for a given
Entity the dirty and flushed BitSets are a waste.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message