fallintoplace opened a new pull request, #1229: URL: https://github.com/apache/arrow-go/pull/1229
## What - Use an 8-entry stack scratch array for the common input counts in `propagateNulls`. - Keep an exact-capacity heap fallback for larger batches. ## Benchmark Apple M1 Pro, Go 1.26.3. Representative results from `go test -vet=off ./arrow/compute -run "^$" -bench "^BenchmarkPropagateNullsScratch$" -benchmem -benchtime=400ms -count=3 -cpu=1`. | Case | Before | After | | --- | ---: | ---: | | nullable/5 | 138 ns/op, 48 B/op, 1 alloc | 95 ns/op, 0 B/op, 0 allocs | | nullable/8 | 221 ns/op, 64 B/op, 1 alloc | 166 ns/op, 0 B/op, 0 allocs | | nullable/9 | 255 ns/op, 80 B/op, 1 alloc | 256 ns/op, 80 B/op, 1 alloc | ## Tests - `go test -vet=off ./arrow/compute -count=1` - `PARQUET_TEST_DATA=parquet-testing/data go test ./... -count=1` -- 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]
