zeroshade commented on code in PR #13068: URL: https://github.com/apache/arrow/pull/13068#discussion_r870693634
########## go/parquet/file/page_reader.go: ########## @@ -611,8 +610,6 @@ func (p *serializedPageReader) Next() bool { // we don't know this page type, we're allowed to skip non-data pages continue } - - p.buf = memory.NewResizableBuffer(p.mem) Review Comment: `NewBufferBytes(buf.Bytes())` just creates a `*memory.Buffer` which references the existing slice, it doesn't copy the contents of the slice. So there's no copying happening. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org