On Monday, 27 June 2016 at 22:51:05 UTC, Martin Nowak wrote:
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

Yeah, but you can blast the whole heap in between reuse, and that is great :)

Reply via email to