Re: [PATCH] D22470: [libcxx] Improve shared_ptr dtor performance

2016-08-01 Thread Ben Craig via cfe-commits
bcraig closed this revision. bcraig added a comment. committed https://reviews.llvm.org/rL277357: Improve shared_ptr dtor performance. https://reviews.llvm.org/D22470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

Re: [PATCH] D22470: [libcxx] Improve shared_ptr dtor performance

2016-08-01 Thread Ben Craig via cfe-commits
bcraig added a comment. I am going to submit the code changes and the tests independently. I'm having trouble getting cmake to use the right compiler for the libcxx-benchmarks target. https://reviews.llvm.org/D22470 ___ cfe-commits mailing list c

Re: [PATCH] D22470: [libcxx] Improve shared_ptr dtor performance

2016-07-24 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Thank you for the thorough doc. It sure made the review easy on my end. I took the liberty of rewriting your 3 benchmarks to use Google Benchmark: https://gist.github.com/EricWF/6ab9d3ca

Re: [PATCH] D22470: [libcxx] Improve shared_ptr dtor performance

2016-07-19 Thread Ben Craig via cfe-commits
bcraig updated the summary for this revision. bcraig updated this revision to Diff 64504. bcraig added a comment. Added weak_ptr benchmark, as that's where the cost shifted. https://reviews.llvm.org/D22470 Files: benchmarks/shared_ptr_create_destroy.cpp benchmarks/shared_ptr_inc_dec_ref.cpp

[PATCH] D22470: [libcxx] Improve shared_ptr dtor performance

2016-07-18 Thread Ben Craig via cfe-commits
bcraig created this revision. bcraig added reviewers: jfb, mclow.lists, EricWF. bcraig added a subscriber: cfe-commits. If the last destruction is uncontended, skip the atomic store on __shared_weak_owners_. For x86_64, this results in an 8% improvement in shared_ptr ctor+dtor performance. Old be