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/28 08:04:16 UTC
[PR] perf(arrow/array): compare union values in runs [arrow-go]
fallintoplace opened a new pull request, #1244:
URL: https://github.com/apache/arrow-go/pull/1244
## Summary
- **Batch consecutive union values with the same type code.**
- Sparse unions compare one child slice per run.
- Dense unions batch only when both child offset sequences are contiguous.
- Apply the same path to exact and approximate equality.
- Add sliced, null, skipped-offset, mismatch, and benchmark coverage.
## Benchmark
Local Apple M1 Pro run with 65,536 rows and 64-row type runs:
- Sparse `Equal`: **14.8 ms -> 0.95 ms**, **262,150 -> 4,102 allocs/op**
- Dense `Equal`: **13.9 ms -> 1.04 ms**, **262,150 -> 4,102 allocs/op**
- Alternating type codes stay roughly flat, as expected.
## Tests
- `go test ./...`
- `go vet ./arrow/array`
- `GOOS=linux GOARCH=386 go build ./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): compare union values in runs [arrow-go]
Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1244:
URL: https://github.com/apache/arrow-go/pull/1244
--
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