Parallel ByLine, ByChunk?

Graham Fawcett fawcett at uwindsor.ca
Wed Aug 10 16:58:53 PDT 2011


On Tue, 09 Aug 2011 20:22:40 +0000, dsimcha wrote:

> Ok, I've actually managed to come up with a good way to do this without
> writing any new low-level concurrency code.  The idea is to create two
> delegates:  nextDel reads the next element into a user-provided buffer. 
> emptyDel tests whether there's anything left to read.  

Doesn't that essentially implement the InputRange protocol, but with 
delegates instead of an object?

Not saying it's bad, just wondering what the benefits/tradeoffs of your 
delegate-based approach are.

Graham


More information about the Digitalmars-d mailing list