emfjson-jackson icon indicating copy to clipboard operation
emfjson-jackson copied to clipboard

Very Slow loading large amounts of resources

Open RobMoloney opened this issue 4 years ago • 0 comments

I am working on a project that generates ~2500 resources, each file has a number of references. I have noticed that emfjson is very slow to load ~30mins, compared to the default XMLResource. Would it be possible to add something like OPTION_DEFER_IDREF_RESOLUTION described below.

https://www.eclipse.org/modeling/emf/docs/performance/EMFPerformanceTips.html OPTION_DEFER_IDREF_RESOLUTION

Option value: Boolean.

This option can be enabled to defer resolving references within a resource until the whole document has been parsed. The default strategy is to try to resolve each reference as it is encountered and then, at the end, resolve any ones that failed. This wastes time looking up forward references that do not exist yet, which, if you're using intrinsic IDs, can involve iterating over every object in the resource.

RobMoloney avatar Dec 01 '20 09:12 RobMoloney