Re: [RFC] Add num_available_processors
| From: | Daniel Kesselberg | Date: | Sun, 15 Jun 2025 14:04:39 +0000 |
| Subject: | Re: [RFC] Add num_available_processors | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127662@lists.php.net to get a copy of this message | ||
Hi Larry,
Thanks for your feedback.
I've reworked the introduction at https://wiki.php.net/rfc/num_available_processors and hopefully the use case is a bit clearer now.
Best
Daniel
On 2025-05-25 22:22, Larry Garfield wrote:
On Sat, May 24, 2025, at 12:37 PM, Daniel Kesselberg wrote:Hi everyone, I'm happy to share my first RFC :) It proposes adding a small function to retrieve the number of available processors; a feature that's commonly found in other programming languages and one that I believe would be a useful addition to PHP. The related PR has already received a bit of early traction, and now that the RFC is complete, I'm looking forward to your feedback! RFC: https://wiki.php.net/RFC/num_available_processors Patch: https://github.com/php/php-src/pull/11137 Best DanielI don't really have a problem with adding a function to expose this value, in concept. But what is the use case, exactly? The RFC mentions something about php-cs-fixer in passing in half a sentence, but doesn't explain it further. Please explain further what value this has for core, rather than the parallels extension. (In the RFC, not just here on list.) --Larry Garfield