Speed-up connect_default_error_handlers - #492
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
woutdenolf
force-pushed
the
speedup_mxpress_analysis
branch
2 times, most recently
from
August 5, 2026 20:42
ac8613c to
a996fa5
Compare
woutdenolf
force-pushed
the
speedup_mxpress_analysis
branch
from
August 5, 2026 20:49
a996fa5 to
39a5298
Compare
woutdenolf
commented
Aug 5, 2026
Comment on lines
-42
to
-46
| for node_id in set(nodes_without_error_handlers): | ||
| for ancestor_id in node_ancestors(graph, node_id): | ||
| if ancestor_id in default_error_handlers: | ||
| nodes_without_error_handlers.remove(node_id) | ||
| break |
Member
Author
There was a problem hiding this comment.
Remove nodes that have any of the default error handlers as ancestor:
BEFORE: remove a node when one of its ancestors is a default error handler.
woutdenolf
commented
Aug 5, 2026
woutdenolf
marked this pull request as ready for review
August 5, 2026 21:27
LudoBroche
approved these changes
Aug 7, 2026
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.
Quick win for MX workflows before refactoring the graph analysis: #40 (comment)
Before this PR:
After this PR:
This quick win is useful when switching from BES flask servers to Ewoks workers. The BES flask server is caching the result of
load_graph()with a wapper calledload_workflow()Before this PR:
After this PR:
So caching gains ~0.3 sec on my PC after this fix. Hardly worth it as opposed to the original 2.5 sec which is significant.
Ping @olofsvensson @LudoBroche