17 Feb
2016
17 Feb
'16
12:18 a.m.
On 02/16/2016 07:09 PM, Phil Bouchard wrote:
If I try out the latest modifications and I disable the threads then on Linux I have:
make: auto_ptr: 2458626 ns shared_ptr: 2685224 ns block_ptr: 28300624 ns
new: auto_ptr: 2383605 ns shared_ptr: 4992185 ns block_ptr: 7979659 ns
So I just added a specialization of the pool for GCC x86 and now block_ptr<> speeds up by 20%:
make: auto_ptr: 2511658 ns shared_ptr: 2695469 ns block_ptr: 22547960 ns
new: auto_ptr: 2369312 ns shared_ptr: 4991352 ns block_ptr: 6443925 ns
I mean there is not much difference in speed with shared_ptr<> (30%), given that extra functionality.