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

Are you arguing in favour of having fiber local GC or just having a regular allocator? In a real cloud setup you'll have to deal with running on instances with only 128MB of RAM, so you need to collect occasionally for heavy requests. If you don't the entire instance is shut down.

Reply via email to