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

performance improvement for ServerResponseWriter

    XMLWordPrintable

Details

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

    Description

      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%.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: