You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Anthony Miyaguchi (JIRA)" <ji...@apache.org> on 2019/03/30 04:21:00 UTC

[jira] [Commented] (AVRO-2364) Use Jackson TokenBuffer in JsonDecoder

    [ https://issues.apache.org/jira/browse/AVRO-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16805608#comment-16805608 ] 

Anthony Miyaguchi commented on AVRO-2364:
-----------------------------------------

TokenBuffers are mentioned on the [Jackson wiki |https://github.com/FasterXML/jackson-docs/wiki/Presentation:-Jackson-Performance] for being the most efficient representation for replaying parts of the token stream. I think it would be interesting to see if there is a measurable change in decoding JSON documents. Are there benchmarks for the encoders and decoders?

> Use Jackson TokenBuffer in JsonDecoder
> --------------------------------------
>
>                 Key: AVRO-2364
>                 URL: https://issues.apache.org/jira/browse/AVRO-2364
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.8.2
>            Reporter: Anthony Miyaguchi
>            Priority: Trivial
>
> The JsonDecoder implements a class for replaying parts of the JSON stream when accessing fields out of order.
> This module can take advantage of [TokenBuffers|http://static.javadoc.io/com.fasterxml.jackson.core/jackson-databind/2.9.8/com/fasterxml/jackson/databind/util/TokenBuffer.html] to reduce code size. This buffer can be read back as a parser.
>  
> [https://github.com/apache/avro/blob/db992cf8686ffa681b0c592696b37ad519c33ee6/lang/java/avro/src/main/java/org/apache/avro/io/JsonDecoder.java#L514-L754]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)