Please help me understand concurrency in Go: why is this approach slower than a typical (non-concurrent) one?

I’ve been learning how to program in Go, and I thought it’d be interesting to try to implement a combinatorial algorithm I remember from school. I first implemented the same solution I had written in Java, and then realized it could be possible to use goroutines to add some concurrency to the solution. After the … Read more

faster code, slower code, bloated memory

When you’re processing data with Pandas, so-called “vectorized” operations can significantly speed up your code. Or at least, that’s the theory. In practice, in some situations Pandas vectorized operations can actually make your code slower, or at least no faster. And they can also significantly increase memory usage. Let’s dig in and see what vectorization … Read more