Performance enhancements for ref resolving

I pre-flattened my schema and removed hasRefs from the JsonFormsDispatchRenderer. I noticed a huge performance improvement (around 10 seconds for the first render).

I was wondering if there is a way I can turn this into a PR. I had a couple of different ideas.

  • Add a “flatSchema” config option, you tell JSON Forms that hasRefs will never be true. The responsibility to flatten the schema goes onto the library user.

  • Only pass flattened schemas to JsonFormsDispatch, StateProviders become responsible to flatten schema

What do you think the best approach is?

[original thread by Lily]

Thanks for the analysis! We’re currently exploring multiple approaches for an improved references handling and will take your suggestions into account.