andygrove opened a new pull request, #4886:
URL: https://github.com/apache/datafusion-comet/pull/4886

   > ⚠️ **Autonomously generated by an LLM.** This PR was created end-to-end by 
an automated agent with no human author. It has passed automated correctness 
(unit tests + differential fuzz) and micro-benchmark gates, but **requires full 
human review**. Do not merge without expert scrutiny.
   
   ## What changed
   Optimizes `spark_array_compact` in the native `spark-expr` crate.
   
   Batch contiguous non-null element runs into single MutableArrayData::extend 
calls (plus a whole-row fast path when no element nulls exist), replacing the 
base's one-extend-per-element inner loop.
   
   ## Evidence
   - Correctness: unit tests + seeded differential fuzz (bit-identical Arrow 
output vs `main`).
   - Benchmark (criterion, Rust-only): see numbers below; gate required at 
least one benchmark ≥ 5.0% faster (non-overlapping confidence intervals) and no 
benchmark meaningfully slower.
   
   ```
   array_compact_ no nulls: 92.616% faster (base 298022ns -> cand 22005ns)
   array_compact_ sparse nulls: 57.079% faster (base 416696ns -> cand 178850ns)
   array_compact_ dense nulls: -30.005% faster (base 262952ns -> cand 341852ns)
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to