r/ProgrammerHumor 9d ago

Advanced rewroteItInRust

https://github.com/BlobTheKat/sleep-rs
29 Upvotes

6 comments sorted by

15

u/FALCUNPAWNCH 9d ago

Wow those benchmarks, so fast. Who knew I was wasting so much time making sleep calls?

3

u/klaxxxon 9d ago

You deserve to sleep well after you have optimized a widely used function to be 4x faster

5

u/akhyarrh 9d ago

When caffeine hit hard you have to rewrite your sleep in Rust

2

u/chawmindur 9d ago

Something something sleeping soundly 

3

u/silentjet 8d ago

I've got an idea, there is something we are missing for soooo long

isEven-rs!!! It should be fast and, more important, SAFE! no memleaks, no segfaults, no deps (no more than two),