Re: [patch] Reduce space and time overhead of std::thread

2015-09-29 Thread Jonathan Wakely
On 23/09/15 17:18 +0100, Jonathan Wakely wrote: For PR 65393 I avoided some unnecessary shared_ptr copies while launching a std::thread. This goes further and avoids shared_ptr entirely, using unique_ptr instead. This reduces the memory overhead of a std::thread by 32 bytes (on 64-bit) and avoids

[patch] Reduce space and time overhead of std::thread

2015-09-23 Thread Jonathan Wakely
For PR 65393 I avoided some unnecessary shared_ptr copies while launching a std::thread. This goes further and avoids shared_ptr entirely, using unique_ptr instead. This reduces the memory overhead of a std::thread by 32 bytes (on 64-bit) and avoids any reference-count updates. The downside is it