1. 23 8月, 2013 1 次提交
  2. 19 8月, 2013 1 次提交
  3. 16 8月, 2013 1 次提交
  4. 15 8月, 2013 1 次提交
    • K
      Add ToCStr method .with_c_str() · 03ef71e2
      Kevin Ballard 提交于
      .with_c_str() is a replacement for the old .as_c_str(), to avoid
      unnecessary boilerplate.
      
      Replace all usages of .to_c_str().with_ref() with .with_c_str().
      03ef71e2
  5. 10 8月, 2013 4 次提交
  6. 09 8月, 2013 1 次提交
    • B
      std: Fix perf of local allocations in newsched · d3925561
      Brian Anderson 提交于
      Mostly optimizing TLS accesses to bring local heap allocation performance
      closer to that of oldsched. It's not completely at parity but removing the
      branches involved in supporting oldsched and optimizing pthread_get/setspecific
      to instead use our dedicated TCB slot will probably make up for it.
      d3925561
  7. 08 8月, 2013 2 次提交
  8. 07 8月, 2013 1 次提交
  9. 06 8月, 2013 2 次提交
  10. 05 8月, 2013 6 次提交
  11. 04 8月, 2013 1 次提交
  12. 03 8月, 2013 1 次提交
  13. 02 8月, 2013 1 次提交
  14. 01 8月, 2013 3 次提交
  15. 30 7月, 2013 1 次提交
    • D
      implement pointer arithmetic with GEP · ef870d37
      Daniel Micay 提交于
      Closes #8118, #7136
      
      ~~~rust
      extern mod extra;
      
      use std::vec;
      use std::ptr;
      
      fn bench_from_elem(b: &mut extra::test::BenchHarness) {
          do b.iter {
              let v: ~[u8] = vec::from_elem(1024, 0u8);
          }
      }
      
      fn bench_set_memory(b: &mut extra::test::BenchHarness) {
          do b.iter {
              let mut v: ~[u8] = vec::with_capacity(1024);
              unsafe {
                  let vp = vec::raw::to_mut_ptr(v);
                  ptr::set_memory(vp, 0, 1024);
                  vec::raw::set_len(&mut v, 1024);
              }
          }
      }
      
      fn bench_vec_repeat(b: &mut extra::test::BenchHarness) {
          do b.iter {
              let v: ~[u8] = ~[0u8, ..1024];
          }
      }
      ~~~
      
      Before:
      
          test bench_from_elem ... bench: 415 ns/iter (+/- 17)
          test bench_set_memory ... bench: 85 ns/iter (+/- 4)
          test bench_vec_repeat ... bench: 83 ns/iter (+/- 3)
      
      After:
      
          test bench_from_elem ... bench: 84 ns/iter (+/- 2)
          test bench_set_memory ... bench: 84 ns/iter (+/- 5)
          test bench_vec_repeat ... bench: 84 ns/iter (+/- 3)
      ef870d37
  16. 24 7月, 2013 3 次提交
  17. 23 7月, 2013 2 次提交
  18. 22 7月, 2013 2 次提交
  19. 21 7月, 2013 1 次提交
  20. 18 7月, 2013 3 次提交
  21. 15 7月, 2013 2 次提交