Skip to content
  1. Nov 16, 2010
    • Howard Hinnant's avatar
      Dave Zarzycki showed how the efficiency of shared_ptr could be significantly · 9b35c827
      Howard Hinnant authored
      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
      9b35c827
  2. Oct 29, 2010
  3. Oct 18, 2010
  4. Oct 14, 2010
  5. Oct 04, 2010
    • Howard Hinnant's avatar
      Still working on the basic design of <atomic>. I'm working towards a system... · 2b672e24
      Howard Hinnant authored
      Still working on the basic design of <atomic>.  I'm working towards a system by which the compiler only needs to define the strongest intrinsics it can.  Weaker atomics in the library automatically try stronger and stronger variants, picking the weakest compiler intrinsic available.  If no compiler intrinsics are available for a given operation, the library locks a mutex and does the job.  Better documentation to follow...
      
      llvm-svn: 115538
      2b672e24
  6. Oct 03, 2010
  7. Sep 13, 2010
  8. Sep 10, 2010
  9. Sep 05, 2010
  10. Sep 04, 2010
  11. Sep 03, 2010
  12. Aug 30, 2010
  13. Aug 27, 2010
  14. Aug 25, 2010
  15. Aug 22, 2010
  16. Aug 11, 2010
  17. Jul 27, 2010
  18. Jun 24, 2010
  19. Jun 21, 2010
  20. Jun 17, 2010
  21. Jun 03, 2010
  22. Jun 02, 2010
  23. May 31, 2010
  24. May 30, 2010
  25. May 27, 2010
  26. May 26, 2010
  27. May 25, 2010
  28. May 24, 2010
  29. May 19, 2010
  30. May 14, 2010
  31. May 11, 2010
Loading