Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2659

Performance improvements

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.5.8.Final
    • Component/s: None
    • Labels:
      None

      Description

      From https://github.com/resteasy/Resteasy/pull/2479:

      • Avoid unnecessary use of URI.create - rather do more lazily
      • Multivalued maps will 99% of the time have 1 or maybe 2 entries for a key so don't allocate memory for 10
      • Avoid unnecessary matcher creation when decoding when a string does not contain % in it - which is the more likely case for URI's to Rest resources

      These changes increase throughput by about 2% on a simple Rest service and were found doing some hotspot analysis on load tests on Quarkus.

        Attachments

          Activity

            People

            Assignee:
            asoldano Alessio Soldano
            Reporter:
            asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: