Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-4007

[Rust] Faster is_nullable for UnionSchema

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/avro/pull/2961

      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.
      

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mgrigorov Martin Tzvetanov Grigorov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m