You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function ** avro_serialization_test** is not at all efficient. As can be seen, for every encode / decode new resources are initialised, not an optimal technique.
Also the the default avro::InputStream and avro::OutputStream implementations are very rudimentary. Best to use a custom implementation.
for (size_t i = 0; i < iterations; i++) {
auto out = avro::memoryOutputStream();
auto encoder = avro::binaryEncoder();
encoder->init(*out);
avro::encode(*encoder, r1);
auto in = avro::memoryInputStream(*out);
auto decoder = avro::binaryDecoder();
decoder->init(*in);
avro::decode(*decoder, r2);
}
I found avro to be as performant as protobuf after making necessary changes
The text was updated successfully, but these errors were encountered:
function ** avro_serialization_test** is not at all efficient. As can be seen, for every encode / decode new resources are initialised, not an optimal technique.
Also the the default avro::InputStream and avro::OutputStream implementations are very rudimentary. Best to use a custom implementation.
I found avro to be as performant as protobuf after making necessary changes
The text was updated successfully, but these errors were encountered: