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

Speed up ExtensionFactory#getVersion/getVersionConstraint

    XMLWordPrintable

Details

    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: