mina-asham opened a new issue, #310:
URL: https://github.com/apache/avro-rs/issues/310

   Hi, I am working on reading Avro from BigQuery Storage API, the response 
from BigQuery creates a raw Avro binary output, the `Reader` implementation 
doesn't work since it expects the header to be present, so I turned to use 
`from_avro_datum` interface, however it killed the performance of the app, upon 
inspecting this, it turned out that this happens because it's resolving the 
schema multiple times, see the flamegraph below, but basically 
`ResolvedSchema::try_from` is `80.26%` of the `from_avro_datum` call.
   
   Can we expose another interface for `from_avro_datum` that takes in the 
`ResolvedSchema` object instead? Or maybe better, create a binary deserializer, 
in Java this works by using `GenericDatumReader<>(schema)` and creating a 
decoder with `DecoderFactory.get().binaryDecoder`
   
   <img width="1791" height="695" alt="Image" 
src="https://github.com/user-attachments/assets/46fb6e65-2afd-4136-890f-e6c8a95cc668";
 />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to