D on quora ...
Ecstatic Coder
ecstatic.coder at gmail.com
Mon Oct 16 09:43:20 UTC 2017
On Monday, 16 October 2017 at 09:30:03 UTC, Jacob Carlborg wrote:
> On 2017-10-15 18:29, Ecstatic Coder wrote:
>
>> Can you just confirm that D's fibers use most of the available
>> processors/cores by default ?
>
> It depends entirely what you do with with the fibers. When it
> comes to vibe.d, it will only run on one core by default, last
> time I checked. Actually, I looked up the option for enabling
> multithreading for handling HTTP requests, it's now deprecated
> [1] and the recommendation is instead:
>
> "If possible, instead of threads, the use of separate processes
> is more robust and often faster"
>
> [1]
> http://vibed.org/api/vibe.http.server/HTTPServerOption.distribute
Nowadays most web servers are multicore, so that's probably not
very good to optimize their raw performance.
More information about the Digitalmars-d
mailing list