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

Remove unreferenced method literals when deploying applications #1228

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

blairmcg
Copy link
Contributor

Some literals are not referenced by the bytecodes, e.g. because they are special sends, or are immediate numbers or static constants. Retaining these literals if useful in the development environment for reference searches, but for runtime purposes just inflate the literal frame and potentially the closure of referenced objects in the application, so these can be excluded using the NoRefOnlyLiterals compiler flag. Any referenced literals in const expressions are preserved.

@blairmcg blairmcg merged commit 195a85d into master Dec 18, 2023
1 of 2 checks passed
@blairmcg blairmcg deleted the blairmcg/unreferencedliterals branch December 18, 2023 20:37
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