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

[goalc] speed up jak3 compilation #3454

Merged
merged 1 commit into from
Apr 6, 2024
Merged

Conversation

water111
Copy link
Collaborator

@water111 water111 commented Apr 6, 2024

I noticed that jak 3's compilation was spending a lot of time accessing the unordered_maps we use to store constants and symbol types.

I repurposed the EnvironmentMap originally made for GOOS for this. It turns out that we were copying the entire constant map whenever we encountered a deftype, and fixed that too.

This speeds up jak3 compiles from ~16 to 11 seconds for me.

@water111 water111 merged commit cc8801a into master Apr 6, 2024
10 checks passed
@water111 water111 deleted the w/gc-speedup-sym-lookups branch April 6, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant