add caching to JsonRef.fromURI#24
Conversation
Pull request pending: java-json-tools/json-schema-core#24
|
seems super useful. I'm a bit hesitant about the static, I'm looking to see if there's a place that does all this resolving where we can put a cache instead of using a static. |
|
Sounds great! A global static cache may in fact cause a mem leak in some cases. |
|
I probably won't get time to do it. Any chance you can take a look? Seems like a good change and I don't want to lose it because I'm swamped. |
|
Looking at the calls to A more invasive deprecation of the static |
I found out that by caching the results of JsonRef.fromURI, I can get almost 10x performance boost in the JSON Schema validation in my application. Maybe consider including the optimization into json-schema-core?