summaryrefslogtreecommitdiffstats
path: root/libcxx/src/memory.cpp
Commit message (Collapse)AuthorAgeFilesLines
* license changeHoward Hinnant2010-11-161-2/+2
| | | | llvm-svn: 119395
* Dave Zarzycki showed how the efficiency of shared_ptr could be significantlyHoward Hinnant2010-11-161-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixing whitespace problemsHoward Hinnant2010-08-221-2/+1
| | | | llvm-svn: 111751
* now works with -fno-exceptions and -fno-rttiHoward Hinnant2010-08-111-0/+4
| | | | llvm-svn: 110828
* patch by Jeffrey Yasskin for porting to Ubuntu Hardy. Everything was ↵Howard Hinnant2010-05-241-46/+7
| | | | | | 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
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-111-1/+1
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-111-0/+201
llvm-svn: 103490
OpenPOWER on IntegriCloud