segmentio / parquet-go

Go library to read/write Parquet files
https://pkg.go.dev/github.com/segmentio/parquet-go
Apache License 2.0
341 stars 58 forks source link

reduce memory waste of row buffer #439

Closed achille-roussel closed 1 year ago

achille-roussel commented 1 year ago

This PR modifies parquet.RowBuffer to hold row values in a single array instead of letting Go allocate arrays dynamically for each row held in the buffer.

This approach has multiple benefits: