Get the latest tech news
Prospero challenge, now with more garbage collection
Matt Keeter put up The Prospero Challenge, which is like catnip for me. It’s a well-scoped project: we have a slow program. Make it faster within these constraints. In this post, I will describe two very small changes that can speed up his sample program with minimal effort.
His sample tiny implementation, which I will reproduce here, uses Python and NumPy to compute pixels in parallel while parsing the input: Matt made the observation that oops, it’s storing every single frame and that takes up… uh… A quick internet search reveals that CuPy should be a drop-in replacement for NumPy that runs on the GPU.
Or read this on Hacker News