Open JunoBoom opened 3 years ago
Enabling opcache.enable_cli=1 seems to partially have fixed the Pool::Submit slowness with some of the threads submitted but created a new issue :
zend_mm_heap corrupted Segmentation fault
Hi, this fork of pthreads is specifically intended for PocketMine-MP usage, and PM doesn't use Pool, so this is unlikely to get fixed.
Environment
Summary
Pool::Submit takes around 0.02sec for each thread. Each iteration of my foreach loop takes 0.002seconds until getting to Pool::Submit line, where time increases 10fold for each iteration, going up from 0.002 to 0.02 average .
Reproducing Code
Expected Output
Expected thread creation time under 0.002sec
Actual Output
Each thread submit takes 0.02sec .