4 ms·
Did you take a look at the C++ implementation of the hashing function they did? I didn't see a single call made there. They replaced python code that makes 5 ca
by mangeld 3y ago
Did you take a look at the C++ implementation of the hashing function they did? I didn't see a single call made there. They replaced python code that makes 5 calls into a single call.
- akx 3y agoThat's a copy-pasted variation of this public-domain SHA1 code: http://ftp.funet.fi/pub/crypt/hash/sha/sha1.c http://ftp.funet.fi/pub/crypt/hash/sha/sha1.c surrounded by base64 decoding and encoding for a known-length binary text. By inlining all library code you use, yes indeed, you too can also not make a single call.
- Someone 3y agoI didn’t. I expect that it makes a difference, though for the observation that Python native calls are relatively slow.