Closed justinlittman closed 2 years ago
NOTE: Changes to openapi.yml require updating openapi.yml for sdr-api and dor-services-app and generating models - see README.
Improve performance by stopping redundant validation.
âš¡ âš If this change has cross service impact, run integration tests and/or test in [stage|qa] environment, in addition to specs. âš¡
Before:
puts Benchmark.measure { Cocina::Models::Validators::Validator.validate(c.class, c) } 1.381309 0.008735 1.390044 ( 1.393821)
After:
puts Benchmark.measure { Cocina::Models::Validators::Validator.validate(c.class, c) } 0.588038 0.007669 0.595707 ( 0.596772)
NOTE: Changes to openapi.yml require updating openapi.yml for sdr-api and dor-services-app and generating models - see README.
Why was this change made? 🤔
Improve performance by stopping redundant validation.
How was this change tested? 🤨
âš¡ âš If this change has cross service impact, run integration tests and/or test in [stage|qa] environment, in addition to specs. âš¡
Before:
After: