18
submitted 7 months ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Vorpal@programming.dev 3 points 7 months ago

Interesting repo and seems useful as a teaching aid, the algorithms seem to be written with a focus on readability.

However, if you actually need to do any of these operations in production I would recommend finding an optimised and well tested implementation instead. This is especially important for the cryptographical algorithms! But even for something like counting set bits, modern x86-64 CPUs even have a built in instructions for that (POPCNT).

this post was submitted on 16 Jan 2024
18 points (90.9% liked)

Rust Programming

7734 readers
2 users here now

founded 5 years ago
MODERATORS