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

Reuse constructor tags of the same shape for different types #302

Open
jasoncarr0 opened this issue May 15, 2019 · 0 comments
Open

Reuse constructor tags of the same shape for different types #302

jasoncarr0 opened this issue May 15, 2019 · 0 comments
Labels

Comments

@jasoncarr0
Copy link
Contributor

jasoncarr0 commented May 15, 2019

Right now, any distinct constructor (that can't be flattened to an unboxed representation) at the SSA2 level is translated to a unique tag at runtime. Instead, we may combine some constructor tags that don't need to be distinguished from each other. This would reduce executable size, and associated global memory by shrinking the associated tables. It may also enable the GC to share some data of different types that happen to be equal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants