- 23 8月, 2013 1 次提交
-
-
由 Do Nhat Minh 提交于
removed pub on real_args, changed test to use args
-
- 19 8月, 2013 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 16 8月, 2013 1 次提交
-
-
由 Huon Wilson 提交于
-
- 15 8月, 2013 1 次提交
-
-
由 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().
-
- 10 8月, 2013 4 次提交
-
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
cc #7887
-
由 Brian Anderson 提交于
-
由 Erick Tryzelaar 提交于
-
- 09 8月, 2013 1 次提交
-
-
由 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.
-
- 08 8月, 2013 2 次提交
-
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
- 07 8月, 2013 1 次提交
-
-
由 Erick Tryzelaar 提交于
-
- 06 8月, 2013 2 次提交
-
-
由 Erick Tryzelaar 提交于
-
由 Marvin Löbel 提交于
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
-
- 05 8月, 2013 6 次提交
-
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
When strings lose their trailing null, this pattern will become dangerous: let foo = "bar"; let foo_ptr: *u8 = &foo[0]; Instead we should use c_strs to handle this correctly.
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
- 04 8月, 2013 1 次提交
-
-
由 Daniel Micay 提交于
this has been replaced by `for`
-
- 03 8月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 02 8月, 2013 1 次提交
-
-
由 Daniel Micay 提交于
-
- 01 8月, 2013 3 次提交
-
-
由 blake2-ppc 提交于
-
由 Daniel Micay 提交于
-
由 Daniel Micay 提交于
-
- 30 7月, 2013 1 次提交
-
-
由 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)
-
- 24 7月, 2013 3 次提交
-
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
由 Erick Tryzelaar 提交于
-
- 23 7月, 2013 2 次提交
-
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
- 22 7月, 2013 2 次提交
-
-
由 Daniel Micay 提交于
-
由 Gareth Smith 提交于
os::list_dir_path.
-
- 21 7月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
Place `pub` or `priv` on individual items instead.
-
- 18 7月, 2013 3 次提交
-
-
由 blake2-ppc 提交于
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
-
- 15 7月, 2013 2 次提交
-
-
由 Alex Crichton 提交于
If the TLS key is 0-sized, then the linux linker is apparently smart enough to put everything at the same pointer. OSX on the other hand, will reserve some space for all of them. To get around this, the TLS key now actuall consumes space to ensure that it gets a unique pointer
-
由 Alex Crichton 提交于
Closes #3273
-