lukecwik opened a new issue, #23193:
URL: https://github.com/apache/beam/issues/23193

   ### What would you like to happen?
   
   The current TextSource implementation is spending a lot of time during 
`byte[]` copying:
   ![TextSource old implementation performance in 
pipeline](https://user-images.githubusercontent.com/10078956/189754108-c269f343-044d-42a1-8e35-0b2e332cf9b1.png)
   
   Hadoop `LineReader.java` implementation is signficantly faster (~2x) when 
handling typical files due to an implementation that reduces how many bytes are 
copied. A simple benchmark reading 10 million lines (60-120 characters long) 
shows that it takes about ~2.05 seconds to process such a file while the Apache 
Beam TextSource takes ~4.03 seconds.
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: io-java-text


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to