Closed hughns closed 7 years ago
Hi @hughns, thanks for your contribution!
In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.
You did it @hughns!
Thank you for signing the Singer Contribution License Agreement.
:+1: :100: Thank you!
Two performance improvements:
By using the Draft4Validator directly (like target-stitch already does) and caching schema validator instances we can save significant CPU usage overall:
Before:
With the changes:
In this example (for a large schema) a reduction in validation time from 120ms per record to 83ms per record.