Skip to content

Caching for strings / numbers / booleans #1727

@maikelmclauflin

Description

@maikelmclauflin

Describe the problem you are trying to fix (provide as much context as possible)

with complex string checking like regex, especially when there are many at the bottom of objects, it may make more sense to cache results of schema if this is not being done to decrease execution time.

Which API (or modification of the current API) do you suggest to solve that problem ?

anything that checks a non object / non array / serializable data structure for the first part, to optionally speed up large object values that generally do not change over time. cache could be scoped to the validator itself or to an identity created by the validator

Are you ready to work on a pull request if your suggestion is accepted ?

yes

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions