vibe.d-lite v0.1.0 powered by photon

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Sep 19 16:31:38 UTC 2025


On 20/09/2025 4:29 AM, Dmitry Olshansky wrote:
>     Finally, in the case of web applications, in my opinion the better
>     approach for using multiple CPU cores is /usually/ by running
>     multiple /processes/ in parallel, as opposed to multiple threads
>     within a single process. Of course, every application is different
>     and there is no one-size-fits-all approach.
> 
> There we differ, not only load balancing is simpler within a single 
> application but also processes are more expansive. Current D GC 
> situation kind of sucks on multithreaded workloads but that is the only 
> reason to go multiprocess IMHO.

And more importantly you don't pay for anywhere the same number of 
context switches if you can let IOCP/epoll handle scheduling.

But alas, that means thread safety which fibers can't do.


More information about the Digitalmars-d-announce mailing list