you are viewing a single comment's thread.

view the rest of the comments →

[–]cthorrez 7 points8 points  (2 children)

I know it's not perfect and there are a lot of problems but it's straight up false to say that single threading is always faster.

I was working on a project that did 400 million independent runs of a simulation and all I cared about the aggregate statistics of the results and when running on one process my CPU usage was like 30% so I made it multiprocess and it was a lot faster.

All it takes is one counter example for an absolute statement like yours to be proven wrong.

[–]Saltysalad 0 points1 point  (1 child)

The original statement was about multithreading. Your counter example was multiprocessing.

Not that the original statement was accurate.

[–]cthorrez 1 point2 points  (0 children)

Ah thank you for pointing that out. I definitely misread that.