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

Only specialize Jib definitions containing relevant types #355

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

Alasdair
Copy link
Collaborator

When specializing a polymorphic type, previously we would specialize all functions even if they didn't contain references to this type. While this would not change the definition it essentially caused it to be copied which caused the GC to have to do a bunch of extra work.

This reduces the RISC-V model into C compilation memory use by about half on my machine

If we are specializing a polymorphic type, previously we would specialize
all functions even if they didn't contain references to this type. While
this would not change the definition it essentially caused it to be copied
which caused the GC to have to do a bunch of extra work.
@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Test Results

       8 files  ±0       19 suites  ±0   0s ⏱️ ±0s
   550 tests ±0     550 ✔️ ±0  0 💤 ±0  0 ±0 
1 834 runs  ±0  1 833 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit 0f2ca40. ± Comparison against base commit 3f6f8f0.

♻️ This comment has been updated with latest results.

@Alasdair Alasdair merged commit 1d09489 into sail2 Oct 25, 2023
9 checks passed
@Alasdair Alasdair deleted the jib_spec_gc branch October 25, 2023 16:39
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.

1 participant