Here is an optimization for our multi-scheme password system. With just a few lines of code, we can add Tokio's spawn_block, which schedules these potentially long-running tasks in their own thread pool, allowing other smaller tasks to be processed concurrently.
Thanks to @kinositajona for this great suggestion.
Repo: https://github.com/rust10x/rust-web-app
Commit: https://github.com/rust10x/rust-web-a...
Discord rust10x - / discord
Happy coding!
== Jeremy Chone:
Patreon - / jeremychone - Any help is a big help (for Rust educational content)
Twitter - / jeremychone
Discord general-rust - / discord
Discord rust10x - / discord
Rust10x - https://rust10x.com - Rust resources for production coding.
== Rust10x production coding:
Episode 01: • Rust Axum Production Coding (E01 - Ru...
Episode 02: • Rust Sea-Query + SQLX + ModQL (E02 - ...
Episode 03: • Rust Workspace Production By Example ...
Episode 04: • Rust Argon 2 Password Hashing with Mu...
Web Site: https://rust10x.com/web-app
GitHub: https://github.com/rust10x/rust-web-app
Discord rust10x - / discord
Patreon - / jeremychone - Any help is a big help (for Rust Production Coding educational content)
Watch video Rust - spawn_block optimization for Argon 2 online without registration, duration hours minute second in high quality. This video was added by user Jeremy Chone 09 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,44 once and liked it 8 people.