Cache JsonProvider.provider() result as per javadoc recommendation
I got through this because I found a performance hostpot in calling Json methods (about 500 microsec per call on a i5)
+1, I'm serialising a large object and it takes about 2000ms on my machine currently. Switching to this implementation drops it down to 50ms.
See https://github.com/eclipse-ee4j/jsonp/pull/80 it seems there already is a similar PR in Jakarta EE. I doubt that this repository results in any new updates or releases.
@lukasj @bravehorsie Recently there were some similar PRs in different projects. I am not 100% convinced that it's needed. Folks, I want you to review it before letting it go.