You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fallintoplace (via GitHub)" <gi...@apache.org> on 2026/08/26 21:43:24 UTC

[PR] perf(arrow/array): avoid temporary buffers for binary concatenation [arrow-go]

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

   ## Summary
   
   - copy binary and string values directly from source buffers
   - avoid creating temporary `memory.Buffer` wrappers for each input chunk
   - keep offset rebasing and overflow checks in the direct path
   - add sliced binary/string coverage and a variable-width benchmark
   
   ## Benchmarks
   
   Apple M1 Pro, 65,536 values, 8-byte values:
   
   | chunks | old allocs | new allocs | old B/op | new B/op |
   | ---: | ---: | ---: | ---: | ---: |
   | 1 | 12 | 8 | 803,411 | 803,229 |
   | 1,024 | 2,059 | 9 | 1,020,824 | 838,035 |
   | 8,192 | 16,395 | 9 | 2,507,159 | 1,065,358 |
   
   ## Tests
   
   - `PARQUET_TEST_DATA="$PWD/parquet-testing/data" go test -count=1 ./...`
   - `go vet ./arrow/array`
   


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf(arrow/array): avoid temporary buffers for binary concatenation [arrow-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1215:
URL: https://github.com/apache/arrow-go/pull/1215


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org