Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3427

[perf] Use only one StringBuilder for generate unique facelets identifiers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.12, 2.1.6
    • None
    • None

    Description

      The code that generate unique identifiers, like UIComponentBase.getClientId() and others inside facelets are operations that are called very frequent, so it is necessary to ensure that code is as fast as possible and use few memory resources

      Also, doing some performance tests I notice Long.toString(long, radix) is too expensive. It creates a lot of unnecessary String objects.

      In practice, we should prevent create object instances in such locations, and use only one StringBuffer if possible.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: