Skip to content

[MINOR] Avoid Reading Distributed Matrix for Obtaining the Sparsity Information - #2643

Open
ywcb00 wants to merge 1 commit into
apache:mainfrom
ywcb00:fix/recompile/sparsity/optimizer/integrate
Open

ywcb00 wants to merge 1 commit into
apache:mainfrom
ywcb00:fix/recompile/sparsity/optimizer/integrate

Conversation

@ywcb00

@ywcb00 ywcb00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Hi,
this PR checks if the matrix object is partitioned (i.e., distributed) before calling acquireReadAndRelease and does not read the matrix if it is distributed.
All the best,
David

…sity from the in-memory matrix block if it is partitioned (i.e., distributed)
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.64%. Comparing base (1a358e5) to head (f0c91b9).

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #2643       +/-   ##
=============================================
+ Coverage     72.18%   76.64%    +4.46%     
=============================================
  Files          2105      458     -1647     
  Lines        230158    31204   -198954     
  Branches      38694        0    -38694     
=============================================
- Hits         166139    23917   -142222     
+ Misses        52813     7287    -45526     
+ Partials      11206        0    -11206     
Flag Coverage Δ
java ?
python 76.64% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ywcb00

ywcb00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

I am not sure if MatrixObject.isPartitioned() is the correct method way to check if the matrix is distributed. However, I could not find a respective check inside MatrixObject or ExecutionContext.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant