Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Update to portgraph 0.13 / petgraph 0.7 #1878

Merged
merged 4 commits into from
Jan 20, 2025
Merged

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Jan 20, 2025

The new portgraph release comes with some perf improvements.
We require this update for #1869.

Closes #1872.

I added a benchmark variation for subgraphs with few nodes as a drive-by.
This got improved by the new portgraph (skipping a full graph traversal), but the runtime is still mostly the O(n) full-graph traversal required for the convexity checking when building the subgraph.

BREAKING CHANGE: Bumped public dependency portgraph to breaking version 0.13.

@aborgna-q aborgna-q requested a review from a team as a code owner January 20, 2025 11:35
@aborgna-q aborgna-q requested a review from mark-koch January 20, 2025 11:35
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.55%. Comparing base (783986a) to head (8853214).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1878   +/-   ##
=======================================
  Coverage   86.55%   86.55%           
=======================================
  Files         195      195           
  Lines       35569    35584   +15     
  Branches    32382    32397   +15     
=======================================
+ Hits        30786    30801   +15     
  Misses       3011     3011           
  Partials     1772     1772           
Flag Coverage Δ
python 92.34% <ø> (ø)
rust 85.98% <100.00%> (+<0.01%) ⬆️

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

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

@@ -247,7 +247,7 @@ pub(super) mod test {
Some(Signature::new(vec![usize_t()], vec![usize_t()]))
);
assert_eq!(inner_region.node_count(), 3);
assert_eq!(inner_region.edge_count(), 2);
assert_eq!(inner_region.edge_count(), 1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously wrong. The inner subgraph is just a DFG with one input / output connected directly to each other.

@aborgna-q aborgna-q force-pushed the ab/update-portgraph branch from 21252e1 to 8853214 Compare January 20, 2025 12:24
@aborgna-q aborgna-q added this pull request to the merge queue Jan 20, 2025
Merged via the queue into main with commit ad285f5 Jan 20, 2025
24 checks passed
@aborgna-q aborgna-q deleted the ab/update-portgraph branch January 20, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore!: Update to portgraph 0.13 & petgraph 0.7
3 participants