3 ms·
Twenty years later this seems to still be good advice. Martin Thompson talks about this in his Mechanical Sympathy talk. He says the first thing he does, as a
by milesvp 9y ago
Twenty years later this seems to still be good advice. Martin Thompson talks about this in his Mechanical Sympathy talk.
He says the first thing he does, as a performance consultant, is turn off threading. Claims that's often all he needs to achieve the desired improvements...
It's a good talk, I highly recommend it.
https://www.infoq.com/presentations/mechanical-sympathy https://www.infoq.com/presentations/mechanical-sympathy
- ttoinou 9y agoWho creates threads just for fun ? I only use them when I really need them (in C++), so there's really no alternative for me
- YZF 9y agoYep. If all you have is a blocking sys call and you want performance you gotta have threads. If you want to use more than a single core at a time for computation, you gotta have threads. [And I use the word threads loosely, you could have multiple processes as well or whatever OS primitive let's you get concurrency]. A 20 core CPU can do some things 20 times faster than a single core (multiply matrices e.g.). If you're trying to do those things and you limit yourself to a single thread - good luck!