RSSAmplifier

Swatinem · Jan 20, 2023

The size of Rust Futures

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I have recently discovered that Rust Futures, or rather, async fn calls can lead to surprising performance problems if they are nested too deeply. I learned that the hard way by triggering a stack overflow in a PR to symbolicator . I then tracked that down to unreasonably huge (as measured by mem::size_of_val ) futures. The problem was also being exacerbated by the deeply nested async fn calls in…

Read on swatinem.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.