pjfanning / pekko-http-json

Integrate some of the best JSON libs in Scala with Pekko HTTP
Apache License 2.0
25 stars 2 forks source link

avro: go back to using input stream when parsing #24

Closed pjfanning closed 3 months ago

pjfanning commented 3 months ago

The byte buffer solution doesn't work well because avro4s does not fully support byte buffers. It just gets a byte array from them and creates a ByteArrayInputStream. The code in this PR is better at avoiding array copies.