gcc/clang optimisation tips for faster performance? #1094
Replies: 2 comments 4 replies
-
You can compile with
Enabling LTO ( |
Beta Was this translation helpful? Give feedback.
-
For some reason chacha20-poly1305 runs much slower using the C interface than from Python (pynacl, which builds its own libsodium based on an older release). Encrypting a gigabyte of data (single message) takes 0.8 seconds from Python and 2.1 seconds on C API. I also tried compiling the git version and it runs just as slow as the build provided by my Linux distro. Decryption is equally slower compared to Python. Running on Ryzen 5. Are the AVX/SSE optimisations enabled in default build, or do I need to specify something to get them? Any other reason for such big difference? |
Beta Was this translation helpful? Give feedback.
-
Trying to reduce my app's runtime (critical in my case). I thought of:
Questions:
Beta Was this translation helpful? Give feedback.
All reactions