-
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
Change Intercycle offsets from list to set. #2291
Change Intercycle offsets from list to set. #2291
Conversation
As discussed, please add an example suite (to profile-battery?) which demonstrates the extreme example. As this is in |
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.
Change looks good.
After a bit of fiddling I've come up with a reasonably generic example. The results aren't quite as extreme but demonstrate the problem. For this suite, looking at the memory usage of the Before
After
Demonstration Suite
Profiling of
|
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.
Looks good.
Whilst profiling cylc's memory usage for a suite I noticed that a taskdef was using 7.3Mb. This was largely due to 48'000 items (mostly duplicates) in the
taskdef.intercycle_offsets
list. This pull reduces this memory usage to 2.9Mb which amounts to roughly a 5% reduction in memory usage for theScheduler
object in this case.The example in question is a somewhat extreme case, profiling results for the complex suite show a much smaller improvement: