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 - Rust We...
Episode 02: • Rust Sea-Query + SQLX + ModQL (E02 - Produ...
Episode 03: • Rust Workspace Production By Example (E03 ...
Episode 04: • Rust Argon 2 Password Hashing with Multi-S...
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)