Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ikitommi
Copy link
Member

@ikitommi ikitommi commented Mar 14, 2023

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)

@ikitommi ikitommi added enhancement New feature or request invalid This doesn't seem right labels Mar 14, 2023
@ikitommi
Copy link
Member Author

marked as invalid as not sure if this makes sense. More code, small benefits.

@ikitommi ikitommi marked this pull request as draft August 30, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant