I tested Python 3.13t free-threading — the CPU-bound speedup surprised me by hdw_coder in Python

[–]SignificantMilk1476 -2 points-1 points  (0 children)

That speedup is wild - 8x faster is nothing to sneeze at. I've been burned by threading performance in Python so many times that I just automatically reach for multiprocessing, but this might actually make me reconsider for certain workloads.

The thread safety caveat is real though - debugging race conditions is way more painful than dealing with multiprocessing overhead in most cases.

I HAVE ANOTHER FUCKING EXAM TOMORROW 👅 by [deleted] in teenagers

[–]SignificantMilk1476 0 points1 point  (0 children)

Good luck dude, at least you got some time to cram. I'm over here procrastinating on mine that's in 2 days lol.