The original post: /r/php by /u/ViolentPacifist_ on 2024-11-10 14:04:12.

I’ve written a very simple “Threadpool” class which can execute multiple instances of the same script in parrallel. It’s probably quite a naive and simplistic approach, but it works. I’ve used a version of it in my work’s production resulting in a 20x speed improvement in processing accounts. Feedback welcome of course!

https://github.com/DanRVP/php-threadpool