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

   ## Summary
   
   - `ArrowReadProperties.Parallel` is false by default.
   - `GetFieldReaders` now uses a direct loop for serial reads.
   - `ReadRowGroups` now reads columns directly for serial reads.
   - The parallel path is unchanged.
   - Added a benchmark for 1, 8, 32, and 128 columns with small row groups.
   
   ## Benchmark
   
   Apple M1 Pro. Median of 5 runs. The benchmark uses `Parallel=false`.
   
   | columns | upstream main | this PR | time change | allocs/op |
   | ---: | ---: | ---: | ---: | ---: |
   | 1 | 156.9 us | 128.8 us | -18% | 1124 -> 1106 |
   | 8 | 1.05 ms | 967 us | -8% | 7848 -> 7810 |
   | 32 | 3.38 ms | 3.24 ms | -4% | 31413 -> 31296 |
   | 128 | 11.92 ms | 11.18 ms | -6% | 124896 -> 124436 |
   
   Command:
   
   ```text
   go test ./parquet/pqarrow -run '^$' -bench '^BenchmarkReadTableSerial$' 
-benchmem -benchtime=1s -count=5
   ```
   
   ## Tests
   
   - `go test ./parquet/pqarrow -count=1`
   - `go test -race ./parquet/pqarrow -run 
'^(TestGetFieldReadersReleasesPartialReadersOnError|TestRecordReaderSerial|TestRecordReaderSeekToRow|TestRecordReaderParallel)$'
 -count=1`
   - `go vet ./parquet/pqarrow`
   


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