alberttwong opened a new issue, #1548:
URL: https://github.com/apache/arrow-go/issues/1548

   ### Describe the enhancement requested
   
   Could arrow-go add or point us to a reproducible wide-batch C Data / C 
Stream import-export benchmark, and document any supported reuse of 
schema/array descriptor allocation across batches?
   
   This is a request for benchmarking/guidance, not a confirmed Arrow 
bottleneck or a claim that the C Data interface copies all array buffers. We 
understand record-batch export already shares buffers with reference-counted 
lifetime management.
   
   We maintain redis/redis-adbc-driver, whose Python/ADBC C boundary exchanges 
Arrow batches with Go. Our end-to-end measurements combine transport, Go row 
conversion, Arrow construction, C stream handoff and Python consumption. They 
do not yet isolate the C bridge. A recent exact-integer conversion optimization 
was in our driver, not Arrow.
   
   ### Suggested benchmark
   
   A server-independent producer/consumer fixture would help attribute the 
boundary cost:
   
   - 105-column batches with Int16/Int32/Int64, UTF-8, Date32 and microsecond 
timestamps; include NULLs and exact integers above 2^53.
   - Compare many 1K-row batches and fewer 10K-row batches for the same total 
rows.
   - Measure Go-side import/export CPU and allocations, descriptor/schema 
allocation and C-call overhead separately from application conversion and IPC 
serialization.
   - Exercise complete consumption plus early release/cancellation, retaining 
batches after producer advance, and concurrent independent readers.
   - Validate every value/type and retain clear ownership/release semantics; 
any pooling must not recycle live C descriptors or let memory retention grow 
without bound.
   
   If existing benchmarks or allocation/reuse APIs cover this, documentation 
pointers would resolve much of the request. Otherwise a benchmark contribution 
and a profile-driven optimization discussion would be useful. We are not 
proposing a general borrowed-buffer or caching change without ownership 
evidence.
   
   ### Context
   
   Our deployment uses arrow-go/v18 v18.8.0, Go 1.27.3, PyArrow 26.0.1 and 
adbc-driver-manager 1.13.0 on arm64. Our published driver experiments show that 
application publication units strongly affect writes; this should not be 
confused with an Arrow issue.
   
   - Driver-level context and sanitized measurements: 
https://github.com/redis/redis-adbc-driver/pull/408
   - Existing C Data implementation: 
https://github.com/apache/arrow-go/blob/main/arrow/cdata/interface.go
   
   No isolated C Data/C Stream regression reproducer or Arrow-specific speedup 
estimate is claimed here.
   
   
   ### Component(s)
   
   Benchmarking, Integration


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