We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some async performance stuff:
don't do:
let a = foo().await; let b = bar().await;
do:
let (a, b) = join!(foo, bar).await;
Also, spawn may not be ideal for performance. It can be better to refactor to avoid that.
spawn
Recursive futures imply a heap allocation for every frame. If you can refactor the code to be imperative you may be able to avoid that.
Just some thoughts!
The text was updated successfully, but these errors were encountered:
Wow, can you create a PR with examples @insanitybit? Amazing suggestions!
Sorry, something went wrong.
No branches or pull requests
Some async performance stuff:
don't do:
do:
Also,
spawn
may not be ideal for performance. It can be better to refactor to avoid that.Recursive futures imply a heap allocation for every frame. If you can refactor the code to be imperative you may be able to avoid that.
Just some thoughts!
The text was updated successfully, but these errors were encountered: