Fiber local GC
Martin Nowak via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 27 15:51:05 PDT 2016
On 06/25/2016 12:33 PM, Ola Fosheim Grøstad wrote:
>
> It takes the same viewpoint. A go-routine (fiber) that is short-lived
> (like a HTTP request handler) can release everything in one swipe
> without collection.
Simple as don't allocate on a per-request basis if you want a fast
program. It also trivial to attach an std.allocator to your custom Fiber.
Also Fibers should be pooled and reused to avoid the setup cost (just
measured 1.5µs on top of the 28ns to simply reset a fiber).
-Martin
More information about the Digitalmars-d
mailing list