avro-schema icon indicating copy to clipboard operation
avro-schema copied to clipboard

Create validate which do not copy a data

Open Khatskevich opened this issue 6 years ago • 0 comments

Sometimes one needs only know if the data is valid (copying is not necessary).

Small bench showed that this can increase speed drastically: 150Krps -> 600Krps.

A separate function can be created for the case.

One of the ways to implement and maintain two similar versions of the validate is storing the function body as a string and modifying it before loadstring().

Khatskevich avatar Sep 25 '18 13:09 Khatskevich