book icon indicating copy to clipboard operation
book copied to clipboard

document futures size explosion pitfall and mitigations

Open spookyvision opened this issue 1 year ago • 10 comments

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

spookyvision avatar Aug 23 '24 18:08 spookyvision

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

eldruin avatar Sep 19 '24 08:09 eldruin

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…

spookyvision avatar Oct 07 '24 16:10 spookyvision