this post was submitted on 30 Jan 2025
784 points (99.6% liked)

memes

11278 readers
3355 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] manucode@infosec.pub 48 points 19 hours ago (3 children)
[–] wise_pancake@lemmy.ca 33 points 19 hours ago (1 children)

I have a great performance optimization for this

What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.

[–] Amanduh@lemm.ee 11 points 17 hours ago

It's not sleeping for 1 second, $1 is an input parameter in the script

[–] morrowind@lemmy.ml 1 points 10 hours ago

Even as a joke, this doesn't avoid anything. The system scheduler just has to do the sorting using a regular algorithm

[–] devfuuu@lemmy.world 9 points 19 hours ago

For anyone who controls time travel this is the fastest algorithm ever. Probably gonna change everything when we are traveling through space and passing by some dark holes.