History log of /llvm-project/libcxx/src/memory.cpp (Results 51 – 56 of 56)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9b35c827 16-Nov-2010 Howard Hinnant <hhinnant@apple.com>

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

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';
}

llvm-svn: 119388

show more ...


Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0
# 940e211c 22-Aug-2010 Howard Hinnant <hhinnant@apple.com>

Fixing whitespace problems

llvm-svn: 111751


# 54b409fd 11-Aug-2010 Howard Hinnant <hhinnant@apple.com>

now works with -fno-exceptions and -fno-rtti

llvm-svn: 110828


# 128ba719 24-May-2010 Howard Hinnant <hhinnant@apple.com>

patch by Jeffrey Yasskin for porting to Ubuntu Hardy. Everything was accepted except there were some bug fixes needed in <locale> for the __nolocale_* series. For the apple branch I ended up using

patch by Jeffrey Yasskin for porting to Ubuntu Hardy. Everything was accepted except there were some bug fixes needed in <locale> for the __nolocale_* series. For the apple branch I ended up using templates instead of the var_args solution because it seemed both safer and more efficient.

llvm-svn: 104516

show more ...


# 5b08a8a4 11-May-2010 Howard Hinnant <hhinnant@apple.com>

Wiped out some non-ascii characters that snuck into the copyright.

llvm-svn: 103516


# 3e519524 11-May-2010 Howard Hinnant <hhinnant@apple.com>

libcxx initial import

llvm-svn: 103490


123