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

   ## Summary
   
   - **Skip temporary arrays when both ranges cover their full inputs.**
   - Keep the existing `NewSlice` path for partial ranges.
   - This also helps `ChunkedEqual` when chunk boundaries line up.
   - Add full-range semantic coverage and benchmarks.
   
   ## Benchmark
   
   Local Apple M1 Pro. `-benchtime=500ms -count=3`.
   
   | Case | main | change |
   | --- | ---: | ---: |
   | `SliceEqual` int64, 64 values | ~700 ns, 352 B, 4 allocs | ~516 ns, 0 B, 0 
allocs |
   | `SliceEqual` string, 64 values | ~677 ns, 384 B, 4 allocs | ~474 ns, 0 B, 
0 allocs |
   | `ChunkedEqual`, 1,024 chunks x 64 values | ~756 us, 360 KB, 4,096 allocs | 
~559 us, 0 B, 0 allocs |
   
   ## Tests
   
   - `go test ./arrow/array`
   - `go test -race ./arrow/array`
   - `go vet -composites=false ./arrow/array`
   - `go test ./... -run '^$'`
   - `GOOS=linux GOARCH=386 go test -c -o /dev/null ./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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to