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)
Смотрите видео Rust - spawn_block optimization for Argon 2 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Jeremy Chone 09 Декабрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,44 раз и оно понравилось 8 людям.