Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97137 Optimize Blog for 7.2
  3. LPS-97259

Avoid massive hashing in PortalCache.get() in SoyTofuCacheHandler

    Details

      Description

      SoyTofuCacheHandler caches the SoyFileset and SoyTofu generated from a list of template resources. The cache key is the list.

      For Soy based UI components (Clay), the full list of all the available template resources of Soy files is used. Every Soy based UI component will use the same key (the full list) and each "get()" involves 300+ hashCode() calls on the template resources.

      With 25 runs of Liferay benchmark Blog test case, there are more than 2 million hashCode() invocations.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              dante.wang Dante Wang
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks ago

                Packages

                Version Package
                7.2.X
                Master