[jira] Created: (OPENJPA-156) Cache class object used to create plugin values

3 Messages Forum Options Options
Embed this topic
Permalink
JIRA jira@apache.org
[jira] Created: (OPENJPA-156) Cache class object used to create plugin values
Reply Threaded MoreMore options
Print post
Permalink
Cache class object used to create plugin values
-----------------------------------------------

                 Key: OPENJPA-156
                 URL: https://issues.apache.org/jira/browse/OPENJPA-156
             Project: OpenJPA
          Issue Type: Sub-task
            Reporter: Michael Dick




--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org
[jira] Updated: (OPENJPA-156) Cache class object used to create plugin values
Reply Threaded MoreMore options
Print post
Permalink

     [ https://issues.apache.org/jira/browse/OPENJPA-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dick updated OPENJPA-156:
---------------------------------

    Attachment: openjpa-156.patch.txt

Another performance issue we've run into is the call to Strings.toClass(clsName, findDerivedLoader(conf, loader)) in Configurations.newInstance().

To work around the problem we tried caching the Class created for a given ClassLoader. It's a relatively simple cache, but it yielded noticeable performance improvements. The attached patch is relative to openjpa-lib, I can attach one that is relative to trunk if that will help.  

> Cache class object used to create plugin values
> -----------------------------------------------
>
>                 Key: OPENJPA-156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-156
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Michael Dick
>         Attachments: openjpa-156.patch.txt
>
>


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org
[jira] Resolved: (OPENJPA-156) Cache class object used to create plugin values
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/OPENJPA-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Linskey resolved OPENJPA-156.
-------------------------------------

    Resolution: Fixed

> Cache class object used to create plugin values
> -----------------------------------------------
>
>                 Key: OPENJPA-156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-156
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Michael Dick
>         Attachments: openjpa-156.patch.txt
>
>


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.