fallintoplace opened a new pull request, #1198:
URL: https://github.com/apache/arrow-go/pull/1198

   ## Summary
   
   * Reserve the configured chunk capacity once before reading each chunked 
batch.
   * Keep schema inference working by reserving after the first row initializes 
the builder.
   * Leave the single-row and ReadAll paths unchanged.
   
   ## Benchmark
   
   On an Apple M1 Pro, `BenchmarkRead/rows=1000_cols=100_chunks=10` improved 
locally from a median of about 36.4 ms to 25.6 ms.
   
   * B/op: about 24.2 MB -> 17.4 MB
   * allocs/op: about 163k -> 113k
   
   The gain is chunk-size dependent. Very small batches are already close to 
the builders’ minimum capacity.
   
   ## Tests
   
   * `PARQUET_TEST_DATA=... go test ./arrow/csv -run ^Test`\n* 
`PARQUET_TEST_DATA=... go test -race ./arrow/csv -run ^Test`\n* Full package 
test run passed with the local Parquet test data checkout, excluding the CSV 
example that needs a separate Arrow CSV fixture.


-- 
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