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

              ian.song Ian Song (Inactive)
              mariano.alvaro Mariano Álvaro
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 43 weeks, 1 day ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2