These are some of my favorite tricks. SHA2-256 is never “fast” but it can be really slow if you’re using a non-SIMD implementation (openssl uses SIMD).
A trick not mentioned here: for Python devs, import “orjson” instead of the json standard library; it is usually a drop-in replacement.
A trick not mentioned here: for Python devs, import “orjson” instead of the json standard library; it is usually a drop-in replacement.