[cpp-threads] RE: "Agenda" for august 23-25 concurrency meeting

Peter Dimov pdimov at mmltd.net
Thu Aug 31 22:26:59 BST 2006


Howard Hinnant wrote:
> On Aug 31, 2006, at 3:36 PM, Peter Dimov wrote:
>
>> There's also the thread creation overhead that can easily dominate
>> the vector<int> copy, but I'll be willing to assume for the sake of
>> the argument that the underlying library pools the threads and the
>> vectors are sufficienty large. :-)
>
> Good.  The copy of a return can be arbitrarily expensive.

Maybe we ought to measure it? A pooled_executor with the "right" number of 
threads against a bunch of thread<R>s. You get to pick the vector size. :-) 




More information about the cpp-threads mailing list