Martin Tzvetanov Grigorov created AVRO-4007:
-----------------------------------------------
Summary: [Rust] Faster is_nullable for UnionSchema
Key: AVRO-4007
URL: https://issues.apache.org/jira/browse/AVRO-4007
Project: Apache Avro
Issue Type: Improvement
Components: rust
Reporter: Martin Tzvetanov Grigorov
Assignee: Martin Tzvetanov Grigorov
https://github.com/apache/avro/pull/2961
{code}
Writing large amounts of avro data in rust is slow because (in my case) ~40% of
total run time is spent in the function UnionSchema::is_nullable. The issue is
that the x == Schema::Null invokes schema canonicalization which is
apparently somewhat slow. I've modified the method to use match instead and see
a considerable performance improvement.
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)