dbtsai commented on PR #474: URL: https://github.com/apache/spark-connect-rust/pull/474#issuecomment-6957162535
Latest source and benchmark update (2026-11-17) The latest fixes are already pushed as [`ac55ecd`](https://github.com/apache/spark-connect-rust/commit/ac55ecd6a8d0464b6b8f85b602c8c5b5200d5e1e): upstream integration/license inventory repair and all eight maintainer fixes. All eight feedback replies are posted. In the saved 2026-11-17 15:01 UTC snapshot, all 26 non-skipped CI checks passed, including all eight native workflow checks; docs deployment was skipped. **No performance candidate passed the complete acceptance criteria or was pushed.** The measurements below describe local, unmerged experiments, not the performance of `ac55ecd`. The earlier published-head `dce536e8` comparison remains historical: raw complete receipt was 226.521 ms native versus 170.223 ms JVM (raw generated-stub timer; not comparable with the `toArrow()` timings below). That benchmark was not rerun on `ac55ecd`. The partition-overlap experiment fetches at most one following result partition while the current one streams, retaining up to two partition results; this PR fetches partitions sequentially. An unmodified official PySpark 4.2 `DataFrame.toArrow()` comparison produced: | Configuration | OSS JVM median, pair 1 / 2 (ms) | Experimental native median, pair 1 / 2 (ms) | Paired native/JVM latency GM | | --- | ---: | ---: | ---: | | NONE, 10,000 rows/batch | 249.339 / 231.556 | 224.416 / 222.027 | 0.928981 | | ZSTD level 3, 100,000 rows/batch | 169.933 / 176.116 | 163.858 / 168.991 | 0.961895 | The observed action times were 7.1% and 3.8% lower, respectively. These are auxiliary observations. The primary sequence did not screen this candidate: an identical-binary Config Get control compared the same binary against itself and failed the original 0.75–1.25 guard with ratio 1.727346; the control budget was exhausted. This shows instability in the metadata measurement and does not clear the candidate for acceptance. The uncompressed official-client runs recorded more full-compaction and evacuation-failure pause events at a 1 GiB heap: whole-log full-compaction pause events were native 12/12 versus JVM 1/1, and evacuation-failure pause events were 62/62 versus 19/19. Client-window total logged pause fractions were native 4.42%/4.53% versus JVM 4.12%/3.52% (pair 1 / pair 2); these windows also include warmups, validation and cleanup. Both compressed forks for both servers recorded zero of those events. Event counts are logged pauses, not a count of all unique GC cycles or a latency decomposition. Method: Apple M3 Max, 16 cores/64 GiB, macOS ARM64; JDK 21; the same stock Spark assembly at `250ccca3f2b5f043e20b415adf17bda5d202c60f`; `local[2]`; 1 GiB driver heap; `spark.range(0, 8_000_000, 1, 2)`; Python 3.12.14, PySpark 4.2.0, PyArrow 26.0.0 and gRPC 1.84.0. There were two AB/BA process pairs per configuration, eight fresh JVMs total, and three warmups plus 100 measured calls per JVM: 824 public actions including warmups. Ratios are geometric means of paired process medians. Identical GC logging and hosting-JVM RSS sampling were enabled for both servers. Timers surrounded only public `toArrow()`, including its normal response handling, IPC decoding and table assembly/cast. Schema/null/count/sum/extrema validation and explicit cleanup were outside timing; aggregate checks do not prove exact row order or uniqueness. Asynchronous response-release acknowledgements and wire retry counts were not observed. Separate follow-ups on the same unmerged native experiment used raw generated gRPC stubs. Complete receipt drains through `ResultComplete`; receipt plus table also opens IPC streams and assembles a PyArrow table. These are separate executions with different boundaries from public `toArrow()`: | Before → after | Paired latency ratio: complete receipt / receipt plus table | Observation | | --- | ---: | --- | | NONE → ZSTD, both 10K rows/batch | 1.111824 / 1.425116 | IPC bytes 65,248,000 → 8,457,816 (about 87% smaller), but about 11% / 43% slower locally | | NONE/10K → ZSTD/100K | 0.947430 / 1.240503 | About 5.3% lower receipt and 24.1% higher receipt plus table latency; codec and batch-size effects are combined | A separate shared Spark block-fetch copy experiment (NONE, 10K rows/batch) completed 412 official `toArrow()` actions. Its patched/stock action-time ratio was 0.999923 (pairs 0.990636/1.009297), showing no meaningful end-to-end gain in this run. Both arms used the unmerged native experiment; only the Spark core block-fetch copy differed. It remains unpublished, and its normal upstream module build was blocked before compilation by the SBT launcher download. All timings are from a shared local desktop and a narrow, highly compressible int64 workload. There is no production, distributed-network, significance or compression-default claim. Raw-stub and official-client timings are not interchangeable. The unmerged implementations cannot be reproduced from the PR head alone. Executor-produced Arrow IPC is preserved. Ordinary batches pass through without decompression/recompression; oversized responses may still need decoding and splitting. The producer/off-heap API change remains deferred. Benchmark summary prepared by OpenAI Codex. -- 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]
