27 Mar
2016
27 Mar
'16
9:11 p.m.
On 03/27/2016 02:04 PM, Phil Bouchard wrote:
I just noticed that if I do not define the BOOST_DISABLE_THREADS macro, root_ptr is faster than allocate_shared_noinit by 124%:
unique_ptr (new): 42.1397 unique_ptr (make_unique): 43.4631 shared_ptr (new): 76.4543 shared_ptr (make_shared): 76.6611 shared_ptr (allocate_shared_noinit): 81.9926 root_ptr (new): 66.3417
... And the bjam file works fine now: https://github.com/philippeb8/root_ptr/blob/master/example/Jamfile.v2 Just uncomment the following lines to use a local installation of Boost: #<library-path>/usr/local/lib #<dll-path>/usr/local/lib Thanks, -Phil