Github user MaxGekk commented on the issue:
    @HyukjinKwon Actually performance degrades because of `InputStreamReader`.  
Cost of `ByteArrayInputStream` is relatively very small.  As you can see in the 
screenshot below  `InputStreamReader` does allocates memory in the heap and 
does decoding per-each rows which takes pretty significant time:
    <img width="966" alt="screen shot 2018-04-15 at 2 33 25 pm" 
    I added benchmarks for measurements of per-line overhead. You can see the 
numbers in the comments. 


To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to