Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-17886

Use weaker hashing to reduce cpu overhead and improve concurrency

    Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed

      Description

      MethodTargetClassKey is used as HashMap key for representation of MethodInvocation, the map used to be huge, so a strong hashing result from MethodTargetClassKey can help to distinguish MethodInvocation. But this strong hashing costs high cpu usage and low concurrency. After evolution, the map is no longer that huge, so a weaker hashing result can reduce the cpu load improve concurrency while still provide enough distinguish ability.

      Please be aware, this hashing result is just used as HashMap key's hashing, not the key itself, so even it is very weak, it won't confuse Map values, since we still have absolutely strong equals method.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              shuyang.zhou Shuyang Zhou
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 26 weeks, 4 days ago

                  Packages

                  Version Package
                  5.2.X EE
                  6.0.12 EE
                  6.1.0 CE RC1