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

document futures size explosion pitfall and mitigations #375

Open
spookyvision opened this issue Aug 23, 2024 · 2 comments
Open

document futures size explosion pitfall and mitigations #375

spookyvision opened this issue Aug 23, 2024 · 2 comments

Comments

@spookyvision
Copy link

spookyvision commented Aug 23, 2024

As explained e.g. here, futures can easily turn into unpleasant memory hog surprises.
One possible easy way to investigate problematic code is to add a future-size-threshold = 100 (or whichever threshold seems reasonable) clippy lint.

Further information: withoutboats: Futures and Segmented Stacks

@eldruin
Copy link
Member

eldruin commented Sep 19, 2024

We would welcome a PR explaining this. Please feel free to write it if you have the time.

@spookyvision
Copy link
Author

I don't feel qualified enough to do a detailed writeup, so would rather see somebody else spearheading this. If nobody else takes it up, I can try and come up with 1-2 paragraphs…

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

No branches or pull requests

2 participants