openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2167) Misc changes to improve flush() path performance
Date Mon, 02 Apr 2012 20:49:25 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244596#comment-13244596
] 

Kevin Sutter commented on OPENJPA-2167:
---------------------------------------

Using a HashSet for the cancel-able prepared statements was overkill.  In most cases, this
would only be a single entry.  So, I'm going to change this to a List with an initial size
of 1.  We can then test whether each Statement needs to be canceled instead of relying on
the Set behavior.
                
> Misc changes to improve flush() path performance
> ------------------------------------------------
>
>                 Key: OPENJPA-2167
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2167
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: kernel, performance
>    Affects Versions: 2.3.0, 2.2.1
>            Reporter: Kevin Sutter
>            Assignee: Kevin Sutter
>
> In StateManagerImpl.proxyFields(), we blindly replace the proxy fields as long as they
loaded.  We can be slightly more efficient if we also verify that the field has been dirtied
before doing the replacement.
> The original intent of this JIRA was to just resolve the issue with proxyFields.  But,
as I continue to dive into this flush() path, there are a few other minor updates that need
to be done (reference the comments on this JIRA).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message