Leaf-schemas are usually created without properties or children. This MR introduces IntoSchema level caching. Schema instance cache is enabled if all of the following apply:
IntoSchema instance
which also support Cached
is instantiated without children, properties or options
Currently, this is enabled just for m/-simple-schemas, yielding 15% better performance on schema creation + smaller memory footprint (not tested)
Leaf-schemas are usually created without properties or children. This MR introduces
IntoSchema
level caching.Schema
instance cache is enabled if all of the following apply:IntoSchema
instanceCached
Currently, this is enabled just for
m/-simple-schemas
, yielding 15% better performance on schema creation + smaller memory footprint (not tested)