Plurrrr

Sat 18 Feb 2023

Python’s multiprocessing performance problem

Because Python has limited parallelism when using threads, using worker processes is a common way to take advantage of multiple CPU cores. The multiprocessing module is built-in to the standard library, so it’s frequently used for this purpose.

But while multiple processes let you take advantage of multiple CPUs, moving data between processes can be very slow. And that can reduce some of the performance benefits of using worker processes.

Let’s see:

  • Why processes can have performance problems that threads don’t.
  • A number of ways to work around or deal with this performance overhead.
  • A bad solution you don’t want to us.

Source: Python’s multiprocessing performance problem, an article by Itamar Turner-Trauring.

All your comparable types

On February 1 we released our latest Go version, 1.20, which included a few language changes. Here we’ll discuss one of those changes: the predeclared comparable type constraint is now satisfied by all comparable types. Surprisingly, before Go 1.20, some comparable types did not satisfy comparable!

Source: All your comparable types, an article by Robert Griesemer.

Along Came a Spider (2001)

When a senator's daughter under Secret Service protection is kidnapped from a private school, detective Alex Cross investigates the case even though he's recovering from the loss of his partner.

In the evening Alice wanted to watch a detective movie, so we settled on Along Came a Spider. I liked the movie and give it a 7 out of 10.