Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1128

Speed up ExtensionFactory#getVersion/getVersionConstraint

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.2
    • Fix Version/s: 8.4.3, 9.0-rc-1
    • Component/s: Extension
    • Labels:
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Right now those two method always create an instance and then look in the cache if there is already one. Since the cache for those is in the raw String we could avoid creating many useless instances by first looking at the cache and only if the cache does match the key create a new instance.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: