[ 
https://issues.apache.org/jira/browse/PARQUET-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julien Le Dem resolved PARQUET-74.
----------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.6.0
         Assignee: Zhenxiao Luo

Thanks for submitting a patch.
This has been merged in 
https://github.com/apache/incubator-parquet-mr/pull/40

> Use thread local decoder cache in Binary toStringUsingUTF8()
> ------------------------------------------------------------
>
>                 Key: PARQUET-74
>                 URL: https://issues.apache.org/jira/browse/PARQUET-74
>             Project: Parquet
>          Issue Type: Improvement
>          Components: parquet-mr
>            Reporter: Zhenxiao Luo
>            Assignee: Zhenxiao Luo
>             Fix For: 1.6.0
>
>
> In Binary toStringUsingUTF8(), new String(...) is slower because it 
> instantiates a new Decoder, while Charset#decode uses a thread-local decoder 
> cache, it is much faster.
> ByteArraySliceBackedBinary is using Charset#decode, while, 
> ByteArrayBackedBinary and ByteBufferBackedBinary are still using new String()



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to