Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
insidegui merged 2 commits into
masterfrom
ah/improve-update-performance
Jun 9, 2023
Merged

Optimize schedule grouping to avoid excessive CPU and memory usage on start up#696
insidegui merged 2 commits into
masterfrom
ah/improve-update-performance

Conversation

@allenhumphreys

Copy link
Copy Markdown
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
Copy Markdown
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