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

WIP: experimentally use dupIO #319

Closed
wants to merge 1 commit into from
Closed

WIP: experimentally use dupIO #319

wants to merge 1 commit into from

Conversation

adamgundry
Copy link
Member

See #318. This adds a new token type TkDup for use when encoding, that duplicates the contained closure. This means that encodings can explicitly duplicate thunks that may otherwise end up in the old generation. It isn't obvious to me whether this is enough or whether calling dupIO every time would be better (and whether that might have an unreasonable performance cost).

Of course dupIO isn't yet released, and currently has soundness issues with static closures, so this isn't suitable for merge in any case...

This adds a new token type TkDup for use when encoding, that duplicates
the contained closure. This means that encodings can explicitly duplicate
thunks that may otherwise end up in the old generation.  It isn't obvious
to me whether this is enough or whether calling dupIO every time would be
better (and whether that might have an unreasonable performance cost).
@adamgundry
Copy link
Member Author

Closing in favour of #321.

@adamgundry adamgundry closed this May 24, 2023
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.

None yet

1 participant