[SYSTEMDS-3902] Replace py4j with faster Unix pipes for Python-Java DataFrame transfer#2363
Closed
e-strauss wants to merge 1 commit intoapache:mainfrom
Closed
[SYSTEMDS-3902] Replace py4j with faster Unix pipes for Python-Java DataFrame transfer#2363e-strauss wants to merge 1 commit intoapache:mainfrom
e-strauss wants to merge 1 commit intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2363 +/- ##
============================================
+ Coverage 72.29% 72.32% +0.03%
- Complexity 46937 47000 +63
============================================
Files 1513 1513
Lines 178421 178738 +317
Branches 35036 35079 +43
============================================
+ Hits 128993 129277 +284
- Misses 39665 39675 +10
- Partials 9763 9786 +23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2c3771f to
624ae74
Compare
Baunsgaard
reviewed
Dec 5, 2025
Contributor
Baunsgaard
left a comment
There was a problem hiding this comment.
LGTM, I mainly have formatting comments that needs to be addressed.
624ae74 to
f569dc0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch extends the previously added data transfer with unix pipes to SystemDS frame transfer capabilities. Additionally, the matrix transfer was further improved by fusing the non-zero value computation into data reading and reducing unnecessary array allocations. The impact is nicely visible in the flame graph of the profiler:
Numpy transfer w/ fused DenseBlock creation and nnz count
Experiment setup: Python --> Java --> Python
py4j profiling
runtime: 16s

unix-pipe profiling
runtime: 0.7s

Updated Python --> Java numpy transfer time:
DataFrame Transfer stats: