Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Faster `is_nullable` for UnionSchema I'm writing several gigabytes of Avro and noticed that it seems oddly slow. I ran a profile and noticed that about 25% of my total run time was being spent in `UnionSchema::is_nullable`. It looks like what's happening is that the test `x == Schema::Null` is slow because the equality test involves a schema canonicalization. I've updated the match to match against Schema::Null instead and see a significant performance increase. * Fix formatting * Apply clippy suggestion Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --------- Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> Co-authored-by: Martin Grigorov <[email protected]> Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information