lukecwik edited a comment on pull request #17134: URL: https://github.com/apache/beam/pull/17134#issuecomment-1074452530
> > I would suggest sticking with `read/writeLongViaLocalBuffer` since read/write calls can depend on many layers of I/O before > > Maybe use a local byte[] for longs and read calls for everything else? That seems consistent with what DataInputStream did as well. It is difficult for me to say whether 4 reads will be cheaper than creating a byte array. I wish fixed length value types could go on the stack then this would be a no brainer but it does look like a win over allocating the 100's of bytes for each `Data*Stream` object so I'll take your judgement call as to whether you want arrays or multiple reads. -- 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]
