13 Apr
2020
13 Apr
'20
8:57 p.m.
On Mon, Apr 13, 2020 at 9:26 PM Eirik Bjørsnøs <eirbjo@gmail.com> wrote: This translates to a Petclinic startup improvement of 91 ms or 1.4 percent
(assuming single-threaded class loading here).
I expect that this can be improved further with a more clever use of hash functions. Specifically it would be great to skip earlier in case of a miss, before the String to byte[] encoding happens.
By using the String name hash before encoding it to bytes, savings increased to 270 ms, which represents a 4.6 percent performance improvement on Spring Petclinic startup. Eirik.