gbv / validation-server

Web service to validate data with support of multiple schema languages
https://format.gbv.de/validate/
MIT License
2 stars 1 forks source link

pre-compile hardcoded JSON schemas #56

Closed nichtich closed 2 years ago

nichtich commented 2 years ago

Use standalone validation code for hardcoded JSON Schemas to speed up startup time (especially for CLI).

nichtich commented 2 years ago

CLI test listing all formats is very slow, should get faster by solving this issue.

nichtich commented 2 years ago

Using pre-compiled code seems to be not faster, at least if only used for validation of configuration. Bottleneck is somewhere loading and application of Ajv, so the compiled code should be cached as well.