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

Reuse calling Collator.getInstance inside compare method when not needed

    Details

      Description

      Collator.getInstance is not exactly a singleton, every time it gets called performs, at least, a clone, besides it is a synchronized static method so it has an impact on the performance if called inside a Comparator.compare method because it can get called up to NlogN needless times.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian.song Ian Song (Inactive)
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 19 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2