Open ImmutableOctet opened 2 years ago
This may make sense as a lower level caching mechanism for JSON files/objects. JSON caching doesn't cover the processing overhead on archetype reload, though.
Factory caching + JSON caching would cover the bulk of this problem space from a performance perspective. It doesn't resolve the memory footprint issue, since the JSON portion would likely use more memory anyway.
Currently only factory objects are cached. Because entity descriptors (found in factories) are processed from archetypes, they may share data.
Note: This may be a hard optimization to achieve, since component redefinition and modification can happen at any point during the construction phase of a factory / entity descriptor.