Rust - spawn_block optimization for Argon 2 @JeremyChone
Rust - spawn_block optimization for Argon 2  @JeremyChone
Uploaded December 2023 | Updated November 2026, 9 hours ago
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: github.com/rust10x/rust-web-app
Commit: github.com/rust10x/rust-web-app/commit/b403da076415c4cc7264aa35d75223b57ad49cdd
Discord rust10x - discord.gg/XuKWrNGKpC

Happy coding!


== Jeremy Chone:

- Patreon - patreon.com/jeremychone - Any help is a big help (for Rust educational content)
- Twitter - twitter.com/jeremychone
- Discord general-rust - discord.gg/W2besKCzjx
- Discord rust10x - discord.gg/XuKWrNGKpC
- Rust10x - rust10x.com - Rust resources for production coding.

== Rust10x production coding:

Episode 01: youtube.com/watch?v=3cA_mk4vdWY&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 02: youtube.com/watch?v=-dMH9UiwKqg&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 03: youtube.com/watch?v=zUxF0kvydJs&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q
Episode 04: youtube.com/watch?v=3E0zK5h9zEs&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q


Web Site: rust10x.com/web-app
GitHub: github.com/rust10x/rust-web-app
Discord rust10x - discord.gg/XuKWrNGKpC
Patreon - patreon.com/jeremychone - Any help is a big help (for Rust Production Coding educational content)
Rust - spawn_block optimization for Argon 2Rust Lang Tutorial 2021 - FunctionsRust live coding ➜ The building of zcoder, E06 (sorry bad Mic for this one)Voice-Remastered - Rust Workspace Production By Example (E03 - Rust Production Web App)Rust for Java Developers 1/3 - Introduction -  [Beginners]SurrealDB - Rust Embedded Database - Quick TutorialRust Error Handling - Best PracticesRust Bevy Full Tutorial - Game Development with Rust - Git Code Updated to Bevy v0.14 !!!State Management with Native Web Components - Full Code Walkthrough - No Frameworks! [intermediate]Rust Lang Course 2021 - Setup & Hello WorldRust Tauri 1.0 - Quick Intro - Rust Desktop AppJC Rust Live Coding ➜ GENAI Multi-Part Support for Image, PDF, and More
Jeremy Chone |

Rust - spawn_block optimization for Argon 2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER