>
> Perhaps I’m missing something, but why isn’t this as simple as newing up
>
a new provider as a local at the start of the action, and disposing it at
the end?

Do mean in the overloaded Paralell.ForEach code?

That will use the maximum number of news and disposes. The performance
difference is probably
neglible for my hashing class, but if it was something more heavyweight
then I'd want
each "thing" to live for the duration of its owning thread, which is the
technique I was seeking
and found in the overload. I'm very happy to finally uncover this pattern
and will find uses
for it in the future.

Greg

Reply via email to