Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
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()
Attachments
Issue Links
- duplicates
-
PARQUET-75 String decode using 'new String' is slow
- Resolved