-
Notifications
You must be signed in to change notification settings - Fork 94
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
data-store graph walk restricted #5475
Conversation
Have repeated the reported result, this reduces the number of calls of The revised algorithm seems to be producing the same results, these screenshots come from the same workflow, installed & run under |
The only down side is; increasing the window size will no longer flesh out the entire workflow graph, it will only show the the direct ancestors/descendants of active nodes. consider:
if But obviously, no down sides with If we're happy with this trade-off, perhaps we should get this one in and work on the no-rewalk change separately. |
Ah, right, this has removed the ability to generate the n>=1 window? |
Nope, (you won't see the cousins) Will update the above comment |
From a bit of experimentation with this pattern:
The number of times
This change removes the N^2 term which is the nasty one. The factor of 5 in the new solution is a little odd, not sure where that's coming from. Would be great to reduce it if possible, but linear scaling is the important bit for now. The lack of cousins in the graph window isn't great, however, this doesn't affect the N=1 window (default) and we don't currently make it easy for users to switch the n-window in the GUI so this shouldn't have any impact right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the performance is well worth the caveats, we can always improve later, thanks @dwsutherland!
(can drop in a changelog later) |
Ha, note cylc/cylc-ui#1281 |
Agreed, fantastic.
This may be OK for the n-window. For n=cycle we shouldn't need to walk out from active tasks. |
On my laptop, it took 15s to spawn 7000 tasks on this branch vs 400s on master 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, merging this now to get it in 8.1.3
@dwsutherland - as a small follow-up could you just add some code comments to explain the current functionality and the "cousins problem"?
(I'll push a hot-fix change log entry for this) |
closes #5435
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.