Re: [RFC] Add num_available_processors

From: Date: Sun, 25 May 2025 20:22:12 +0000
Subject: Re: [RFC] Add num_available_processors
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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
> Daniel

I 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


Thread (21 messages)

« previous php.internals (#127455) next »