Combine Coroutines and Input Ranges for Dead-Simple D Iteration
Sean Kelly
sean at invisibleduck.org
Tue May 1 14:43:17 PDT 2012
On May 1, 2012, at 1:50 PM, Nick Sabalausky wrote:
> "jerro" <a at a.com> wrote in message
> news:sxfngaqnhwxqookrvkif at forum.dlang.org...
>> On Tuesday, 1 May 2012 at 08:26:45 UTC, Nick Sabalausky wrote:
>>> A little write-up I just did on something I thought was pretty cool:
>>>
>>> Combine Coroutines and Input Ranges for Dead-Simple D Iteration
>>> https://www.semitwist.com/articles/article/view/combine-coroutines-and-input-ranges-for-dead-simple-d-iteration
>>
>> This is fun and all, but because of the horrible performance we really
>> shouldn't be recommending people to use it.
>
> So it is bad performance?
Compared to normal iteration schemes, yes. It may be comparable to opApply in terms of performance though. If you're curious, look at the Fiber context switching code (starting at switchIn and switchOut).
More information about the Digitalmars-d-announce
mailing list