You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/01/04 20:13:57 UTC

[jira] Created: (TAP5-970) AssetSource should use more aggresive caching

AssetSource should use more aggresive caching
---------------------------------------------

                 Key: TAP5-970
                 URL: https://issues.apache.org/jira/browse/TAP5-970
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.2.0
            Reporter: Howard M. Lewis Ship
            Priority: Minor


I'm increasingly finding myself writing code that uses AssetSource to obtain assets on-the-fly as part of a component's rendering.  Looking at the code, this does not appear to be exceptionally efficient, as Resources (along with the associated disk file I/o) must be created and localized before a (cached) Asset instance can be identified.

A memoization approach, where method names and method parameters to AssetSource are used to as a cache key, should yield better performance.

As I remember, there was a discussion on the mailing list about too much time being spent inside AssetSource.

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