You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/11 23:52:28 UTC

[jira] [Closed] (TAP5-99) Frequently instantiated service implementations should have a specialized instantiation class created to prevent extra reflection calls

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

Massimo Lusetti closed TAP5-99.
-------------------------------

       Resolution: Invalid
    Fix Version/s: 5.3

Too much changed

> Frequently instantiated service implementations should have a specialized instantiation class created to prevent extra reflection calls
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-99
>                 URL: https://issues.apache.org/jira/browse/TAP5-99
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.3
>
>
> From the department of premature optimization:
> For services that are scope "perthread", the service implementation will be invoked repeatedly, via either invoking a constructor, or invoking a (static or instance) builder method on a module class.
> Currently each such instantiation requires calculating the method/constructor parameters (somewhat expensive) and invocations of the method/constructor via reflection (borderline expensive).  
> The code responsible for this could track the number of instantitations and, on the second (or later) pass, create a "shim" class responsible for performing the same operations in a non-reflective way.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira