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

performance improvement for ServerResponseWriter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None

      Using a static cache of standard MediaTypes speeds up calls to getResponseMediaType() when the MediaType accepted by the request is found in the cache, by avoiding creation of new HashMaps and MediaType instances where possible.

      This will not change behavior when the required MediaType is not found in the cache.

      A copy of the modified class is attached - changes are marked with
      // Liberty change
      flags, as we have made these changes in the overlay we use in WebSphere Liberty.

      Note: with a simple app, this change increased throughput by ~5%.

              Unassigned Unassigned
              gjdeval Gary DeVal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: