Skip to content

Remove unreferenced method literals when deploying applications#1228

Merged
blairmcg merged 1 commit into
masterfrom
blairmcg/unreferencedliterals
Dec 18, 2023
Merged

Remove unreferenced method literals when deploying applications#1228
blairmcg merged 1 commit into
masterfrom
blairmcg/unreferencedliterals

Conversation

@blairmcg

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