openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (Commented) (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2164) Don't setPCState if field requested is already loaded
Date Fri, 30 Mar 2012 20:11:26 GMT


Kevin Sutter commented on OPENJPA-2164:

After a bit more experimentation and testing, we've decided to move this logic from beforeRead
to accessingField.  This can avoid even more of the processing path when the field being requested
has already been loaded.

Related to this change are some helper methods on the FieldMetaData and ClassMetaData.
> Don't setPCState if field requested is already loaded
> -----------------------------------------------------
>                 Key: OPENJPA-2164
>                 URL:
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: Enhance, kernel, performance
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Kevin Sutter
>            Assignee: Kevin Sutter
> Currently, our getter method logic (enhanced byte code plus our statemanager code) has
some unnecessary overhead when processing fields that have already been loaded.  We're looking
at streamlining that processing by using a simple check in the beforeRead method to determine
if the field has already been loaded.  If it has, then just return and let it return the value
already present.  If it has not been loaded, then we'll go through the normal processing.

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


View raw message