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

Optimize schedule grouping to avoid excessive CPU and memory usage on start up #696

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

allenhumphreys
Copy link
Collaborator

After examining the algorithm for creating the schedule groupings, I realized that we only need them sorted by time. The SessionInstance.standardSort is very complex and reaches across linking objects. As a result, large amounts of memory must be used as every object in the graph has to be materialized.

Before:

Screenshot 2023-06-08 at 3 34 37 PM

After:
Screenshot 2023-06-08 at 3 30 43 PM

@insidegui
Copy link
Owner

Amazing work! 🚀

@insidegui insidegui merged commit 7fdc5ed into master Jun 9, 2023
@allenhumphreys allenhumphreys deleted the ah/improve-update-performance branch June 22, 2023 00:01
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.

2 participants