3 ms·
Haha, I had to try a PHP build with the parallel extension[1] with some rather simple code[2]: - single job: 27.8 mb (respectable) - 10k: 8.3 GB! At this poi
by withinboredom 3y ago
Haha, I had to try a PHP build with the parallel extension[1] with some rather simple code[2]:
- single job: 27.8 mb (respectable)
- 10k: 8.3 GB!
At this point, I gave up. I'm 99% sure trying to go to 1 million will crash my computer.
[1]: https://www.php.net/manual/en/intro.parallel.php https://www.php.net/manual/en/intro.parallel.php
[2]: https://gist.github.com/withinboredom/8256055709c0e6a8272b3a20e93cc140 https://gist.github.com/withinboredom/8256055709c0e6a8272b3a...
- withinboredom 3y agoI should add that the good ole' fork approach[1] only uses 40.7mb for 10k, 40.7mb for 100k, and 40.7mb for 1 million. Got to love COW memory. :) [1]: https://gist.github.com/withinboredom/c811f3c433904235a5f19602dccbbf01 https://gist.github.com/withinboredom/c811f3c433904235a5f196...