pmmp / ext-pmmpthread

Fork of https://github.com/krakjoe/pthreads with a revamped API and PHP 8.1+ support
Other
81 stars 17 forks source link

Potential performance issue of PTHREADS_ZG(resolve), global object table, and more #91

Open dktapps opened 1 year ago

dktapps commented 1 year ago

https://github.com/php/php-src/issues/9813

TL;DR: Because of the use of aligned pointers as hash keys (which are unhashed by PHP), we may experience performance losses when looking up Threaded object refs, or when resolving functions from the resolve HT.