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

[perf] use a preinitialized table of unique ids for UIViewRoot.createUniqueId(...)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • JSR-344
    • None

    Description

      Thinking about ways to improve MyFaces, I have realized we can use a table of preinitialized ids in UIViewRoot.createUniqueId(...). In that way, we can save some HashMap.get(...) calls and avoid instantiation of ids we can already know how they look like beforehand. A good number is preinitialize the first 50 ids for ResourceDependency components and other generated components.

      I think it is worth to use Integer instead Long for the unique id generation too.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: