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

Additional load time optimization #165

Merged
merged 6 commits into from
Jan 28, 2025
Merged

Conversation

shanminchao
Copy link
Collaborator

@shanminchao shanminchao commented Jan 27, 2025

The big wins here are from converting many of the critical path functions from using maps to DiveVectors in pm4_info.cpp.
Additionally, some additional pre-reservations are made in commandhierarchy.

On my Windows machine, for a particularly heavy capture, the RELEASE load time decreased by about 3-7 seconds, from about 56s total to about 50s. (There's a lot of variance in profiling in Windows). DEBUG load time is currently at about ~330s, about a 40s improvement from the previous 370s.

On my beefier work Linux machine, load times in RELEASE went down from 23s to about 21.5s.

@wangra-google
Copy link
Collaborator

The big wins here are from converting many of the critical path functions from using maps to DiveVectors in pm4_info.cpp. Additionally, some additional pre-reservations are made in commandhierarchy.

On my Windows machine, for a particularly heavy capture, the RELEASE load time decreased by about 3-7 seconds, from about 56s total to about 50s. (There's a lot of variance in profiling in Windows). DEBUG load time is currently at about ~330s, about a 40s improvement from the previous 370s.

On my beefier work Linux machine, load times in RELEASE went down from 23s to about 21.5s.

That is great! :D

@shanminchao shanminchao force-pushed the optimization branch 2 times, most recently from 7134c23 to 6cfcb29 Compare January 28, 2025 18:23
@shanminchao shanminchao merged commit 9fe68b2 into google:main Jan 28, 2025
7 checks passed
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