News for hackers. Stuff that matters.
Re:Suckless.org: software that sucks less by otabdeveloper4 on Saturday February 22, 2025 @08:21AM (#43138764)
Single threading always makes it run slower though.

Also lots of 1995 assumptions lead to outrageously slow software if used today. Python in 1995 was only marginally slower than C++. It's orders of magnitude slower today.

Re:Suckless.org: software that sucks less by tombert on Saturday February 22, 2025 @10:40AM (#43139934)
Yeah that’s not true. In fact I would say it’s almost the opposite; most things (other than IO) will go slower if you just throw extra threads at it.

There’s overhead with thread creation, locks can introduce a lot of contention and waiting and context switches, coordination between threads has a non-zero cost, and the list goes on.

Well-optimized multithreaded code will often be faster but thats harder than it sounds, and it’s certainly not the case that “single threading always makes it run slower”.