This article is intended for those who, like me, are interested in profiling and performance optimization.




Key Takeaways (TL;DR):


Offload CPU-bound crypto: Move synchronous operations like Argon2id into a ThreadPoolExecutor to stop them from blocking the asyncio event loop.
Choose the right algorithm: Ed25519 is much faster for signing...