#we're using a minimum of 25 fucking threads
Explore tagged Tumblr posts
Text
I've spent the last three days trying to optimize a multithreaded program to get it running faster than the single threaded version that took me like an hour to write. As a last ditch effort I did some cursory searching on the web and confirmed my suspicions that there is literally no advantage to multithread this use case because the computing overhead of managing the state would literally always outpace the advantage of actually having more than one thread do it. ๐ cool great, I love university, I'm learning real world skills ๐
#lmao shut up haz#like it's literally just copying one file#if you weren't worried about order of lines you could probably go faster but even then anything more than 2 threads would just be pointless#we're using a minimum of 25 fucking threads#the state management is a god damn nightmare#also we're using c++ which like... why. if you wanted to teach parallelism concepts java is fine for that. not fast but a lot easier to do
8 notes
ยท
View notes