Branch: refs/heads/master
Home:
https://github.com/resteasy/Resteasy
Commit: cfc110916bd2c1a73bce2bbd1373f5d29b9190d0
https://github.com/resteasy/Resteasy/commit/cfc110916bd2c1a73bce2bbd1373f...
Author: bcluap <bcluap(a)gmail.com>
Date: 2020-07-28 (Tue, 28 Jul 2020)
Changed paths:
M resteasy-core/src/main/java/org/jboss/resteasy/specimpl/MultivaluedMapImpl.java
M resteasy-core/src/main/java/org/jboss/resteasy/specimpl/ResteasyUriInfo.java
M resteasy-core/src/main/java/org/jboss/resteasy/util/Encode.java
Log Message:
-----------
[RESTEASY-2659] Performance improvements (#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.
Co-authored-by: Paul Carter-Brown <paul.carter-brown(a)jini.guru>