darling-libcxx/include
Howard Hinnant 28dbbe0596 Dave Zarzycki showed how the efficiency of shared_ptr could be significantly
increased.  The following program is running 49% faster:

#include <iostream>
#include <memory>
#include <chrono>
#include <vector>
#include "chrono_io"

int main()
{
    typedef std::chrono::high_resolution_clock Clock;
    Clock::time_point t0 = Clock::now();
    {
        std::shared_ptr<int> p(new int (1));
        std::vector<std::shared_ptr<int> > v(1000000, p);
        v.insert(v.begin(), p);
        v.insert(v.begin(), p);
        v.insert(v.begin(), p);
        v.insert(v.begin(), p);
    }
    Clock::time_point t1 = Clock::now();
    std::cout << (t1-t0) << '\n';
}


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@119388 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-16 21:33:17 +00:00
..
ext visibility-decoration. 2010-09-21 21:28:23 +00:00
__bit_reference visibility-decoration. 2010-09-21 17:32:39 +00:00
__config I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
__functional_03 visibility-decoration. 2010-09-21 17:32:39 +00:00
__functional_base visibility-decoration. 2010-09-21 17:32:39 +00:00
__functional_base_03 Tweak to make clang blocks work with std::functional (very fragile) 2010-10-03 13:59:56 +00:00
__hash_table visibility-decoration. 2010-09-21 17:32:39 +00:00
__locale visibility-decoration. 2010-09-21 18:58:51 +00:00
__mutex_base visibility-decoration. 2010-09-21 20:16:37 +00:00
__split_buffer visibility-decoration. 2010-09-21 20:16:37 +00:00
__sso_allocator visibility-decoration. 2010-09-21 20:16:37 +00:00
__std_stream Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
__tree visibility-decoration. 2010-09-21 20:16:37 +00:00
__tuple Cleaning up some tuple code. 2010-09-27 17:54:17 +00:00
__tuple_03 visibility-decoration. 2010-09-21 20:16:37 +00:00
algorithm Fixed bug in random_shuffle to avoid swapping with self 2010-10-22 15:26:39 +00:00
array visibility-decoration. 2010-09-21 20:16:37 +00:00
atomic [atomics.types.address] 2010-10-21 17:44:19 +00:00
bitset visibility-decoration. 2010-09-21 21:28:23 +00:00
cassert Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
ccomplex Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cctype Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cerrno Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cfenv Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cfloat Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
chrono visibility-decoration. 2010-09-21 21:28:23 +00:00
cinttypes Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
ciso646 Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
climits Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
clocale Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cmath I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
codecvt visibility-decoration. 2010-09-21 21:28:23 +00:00
complex visibility-decoration. 2010-09-21 21:28:23 +00:00
complex.h Fixing whitespace problems 2010-08-22 00:02:43 +00:00
condition_variable visibility-decoration. 2010-09-21 21:28:23 +00:00
csetjmp Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
csignal Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cstdarg Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cstdbool Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cstddef I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
cstdint Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cstdio Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
cstdlib Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cstring Bug 7983 fixed by Bernhard Rosenkraenzer 2010-10-14 17:11:39 +00:00
ctgmath Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
ctime Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cwchar Fixing whitespace problems 2010-08-22 00:02:43 +00:00
cwctype Fixing whitespace problems 2010-08-22 00:02:43 +00:00
deque visibility-decoration. 2010-09-21 21:28:23 +00:00
exception visibility-decoration. 2010-09-21 21:28:23 +00:00
forward_list visibility-decoration. 2010-09-21 22:55:27 +00:00
fstream visibility-decoration. 2010-09-21 22:55:27 +00:00
functional Corrected an inconsistency with recent changes in tuple, and perfect forwarding within bind 2010-10-07 18:03:23 +00:00
future Convert __thread_local_data to the singleton pattern 2010-10-14 19:18:04 +00:00
initializer_list visibility-decoration. 2010-09-22 15:29:08 +00:00
iomanip visibility-decoration. 2010-09-22 15:29:08 +00:00
ios visibility-decoration. 2010-09-22 15:29:08 +00:00
iosfwd Getting started on a visibility-decoration sweep. 2010-09-21 16:04:28 +00:00
iostream Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
istream visibility-decoration. 2010-09-22 15:29:08 +00:00
iterator I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
limits visibility-decoration. 2010-09-22 16:48:34 +00:00
list visibility-decoration. 2010-09-22 16:48:34 +00:00
locale visibility-decoration. 2010-09-22 16:48:34 +00:00
map visibility-decoration. 2010-09-22 16:48:34 +00:00
memory Dave Zarzycki showed how the efficiency of shared_ptr could be significantly 2010-11-16 21:33:17 +00:00
mutex visibility-decoration. 2010-09-22 18:02:38 +00:00
new visibility-decoration. 2010-09-22 18:02:38 +00:00
numeric [numeric.iota] 2010-05-26 18:53:44 +00:00
ostream visibility-decoration. 2010-09-22 18:02:38 +00:00
queue visibility-decoration. 2010-09-22 18:02:38 +00:00
random Patch by Marshall Clow to make the assignment operators of piecewise_constant_distribution and piecewise_linear_distribution exception safe. 2010-10-13 14:37:09 +00:00
ratio visibility-decoration. 2010-09-23 15:13:20 +00:00
regex visibility-decoration. 2010-09-23 15:13:20 +00:00
scoped_allocator visibility-decoration. 2010-09-23 16:27:36 +00:00
set visibility-decoration. 2010-09-23 16:27:36 +00:00
sstream visibility-decoration. 2010-09-23 17:31:07 +00:00
stack visibility-decoration. 2010-09-23 17:31:07 +00:00
stdexcept Fixing whitespace problems 2010-08-22 00:02:43 +00:00
streambuf visibility-decoration. 2010-09-23 17:31:07 +00:00
string visibility-decoration. 2010-09-23 17:31:07 +00:00
strstream visibility-decoration. 2010-09-23 17:31:07 +00:00
system_error visibility-decoration. 2010-09-23 17:31:07 +00:00
tgmath.h Wiped out some non-ascii characters that snuck into the copyright. 2010-05-11 21:36:01 +00:00
thread I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
tuple Cleaning up some tuple code. 2010-09-27 17:54:17 +00:00
type_traits I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
typeindex visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00
typeinfo visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00
unordered_map visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00
unordered_set visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00
utility I have reverted all contributions made by Jesse Towner in revision 110724 2010-11-16 21:10:23 +00:00
valarray visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00
vector visibility-decoration sweep completed. 2010-09-23 18:58:28 +00:00