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)
Auf dieser Seite können Sie das Online-Video Rust - spawn_block optimization for Argon 2 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jeremy Chone 09 Dezember 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,848 Mal angesehen und es wurde von 91 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!