Skynet 1M Fiber microbenchmark in D

Biotronic simen.kjaras at gmail.com
Wed Oct 18 13:20:24 UTC 2017


On Wednesday, 18 October 2017 at 12:32:31 UTC, Nordlöw wrote:
> Further, are we forced to use the GC for Fiber allocation or 
> can a sub-class of Fibers implement its own allocation strategy?

Afraid it's set in stone. Now, it doesn't actually use the GC for 
allocating the stack memory, instead opting for VirtualAlloc on 
Windows and mmap, valloc or malloc on other platforms. Of course, 
it's possible to change the implementation in core.thread, but 
it's probably more work than you want. Copying the entire Fiber 
class and changing it also runs into some problems, since it 
depends on private stuff in core.thread.

--
   Biotronic


More information about the Digitalmars-d-learn mailing list