-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 9 pull requests #41872
Rollup of 9 pull requests #41872
Commits on May 5, 2017
-
Make [u8]::reverse() 5x faster
Since LLVM doesn't vectorize the loop for us, do unaligned reads of a larger type and use LLVM's bswap intrinsic to do the reversing of the actual bytes. cfg!-restricted to x86 and x86_64, as I assume it wouldn't help on things like ARMv5. Also makes [u16]::reverse() a more modest 1.5x faster by loading/storing u32 and swapping the u16s with ROT16. Thank you ptr::*_unaligned for making this easy :)
Configuration menu - View commit details
-
Copy full SHA for e8fad32 - Browse repository at this point
Copy the full SHA e8fad32View commit details
Commits on May 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1f891d1 - Browse repository at this point
Copy the full SHA 1f891d1View commit details -
Add reverse benchmarks for u128, [u8;3], and Simd<[f64;4]>
None of these are affected by e8fad32.
Configuration menu - View commit details
-
Copy full SHA for da91361 - Browse repository at this point
Copy the full SHA da91361View commit details
Commits on May 7, 2017
-
Add a link to
park
in thepark_timeout
doc.Part of rust-lang#29378
Felix Raimundo committedMay 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 061b56b - Browse repository at this point
Copy the full SHA 061b56bView commit details -
Add link to the module doc in
park_timeout
.Part of rust-lang#29378
Felix Raimundo committedMay 7, 2017 Configuration menu - View commit details
-
Copy full SHA for c158962 - Browse repository at this point
Copy the full SHA c158962View commit details -
- Adds an explanantion of what `park` does in the `unpark` documentation. - Adds a link to the module doc.
Felix Raimundo committedMay 7, 2017 Configuration menu - View commit details
-
Copy full SHA for d9628f9 - Browse repository at this point
Copy the full SHA d9628f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5573c47 - Browse repository at this point
Copy the full SHA 5573c47View commit details -
Felix Raimundo committed
May 7, 2017 Configuration menu - View commit details
-
Copy full SHA for c0d475a - Browse repository at this point
Copy the full SHA c0d475aView commit details -
Inline
thread::park
documentation.Part of rust-lang#29378 - Moves the module documentation into `park`. - Add the same example as the one from `unpark` to `park`.
Felix Raimundo committedMay 7, 2017 Configuration menu - View commit details
-
Copy full SHA for fa0cdaa - Browse repository at this point
Copy the full SHA fa0cdaaView commit details -
Fix typos in
thread::park
documentation.Felix Raimundo committedMay 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 03c9510 - Browse repository at this point
Copy the full SHA 03c9510View commit details
Commits on May 9, 2017
-
Add more ways to create a PathBuf to docs
The best way to do this wasn't in the documentation, and the ways that were there needed some extra text to elaborate. Fixes rust-lang#40159
Configuration menu - View commit details
-
Copy full SHA for 23382e6 - Browse repository at this point
Copy the full SHA 23382e6View commit details -
Improve docs on Arc<T> and Send/Sync
This is something I always forget, so let's actually explain in the docs.
Configuration menu - View commit details
-
Copy full SHA for 2f6744c - Browse repository at this point
Copy the full SHA 2f6744cView commit details -
Felix Raimundo committed
May 9, 2017 Configuration menu - View commit details
-
Copy full SHA for afe74c3 - Browse repository at this point
Copy the full SHA afe74c3View commit details -
Don't show the std frames before user code on unwinding.
When `RUST_BACKTRACE=1`, remove all frames after `__rust_maybe_catch_panic`. Tested on `main`, threads, tests and benches. Cleaning of the top of the stacktrace is let to a future PR. Fixes rust-lang#40201 See rust-lang#41815
Configuration menu - View commit details
-
Copy full SHA for ca8b754 - Browse repository at this point
Copy the full SHA ca8b754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f420b4 - Browse repository at this point
Copy the full SHA 8f420b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49f793a - Browse repository at this point
Copy the full SHA 49f793aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4afe0 - Browse repository at this point
Copy the full SHA cc4afe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e509d2 - Browse repository at this point
Copy the full SHA 2e509d2View commit details
Commits on May 10, 2017
-
Rollup merge of rust-lang#41531 - steveklabnik:gh40159, r=nagisa
Add more ways to create a PathBuf to docs The best way to do this wasn't in the documentation, and the ways that were there needed some extra text to elaborate. Fixes rust-lang#40159 /cc @nagisa
Configuration menu - View commit details
-
Copy full SHA for 946aa2a - Browse repository at this point
Copy the full SHA 946aa2aView commit details -
Rollup merge of rust-lang#41536 - steveklabnik:arc-and-send, r=burnts…
…ushi Improve docs on Arc<T> and Send/Sync This is something I always forget, so let's actually explain in the docs. I didn't fully link up everything here, but I'd like to make sure that the wording is okay before I bother.
Configuration menu - View commit details
-
Copy full SHA for 1b77394 - Browse repository at this point
Copy the full SHA 1b77394View commit details -
Rollup merge of rust-lang#41764 - scottmcm:faster-reverse, r=brson
Make [u8]::reverse() 5x faster Since LLVM doesn't vectorize the loop for us, do unaligned reads of a larger type and use LLVM's bswap intrinsic to do the reversing of the actual bytes. cfg!-restricted to x86 and x86_64, as I assume it wouldn't help on things like ARMv5. Also makes [u16]::reverse() a more modest 1.5x faster by loading/storing u32 and swapping the u16s with ROT16. Thank you ptr::*_unaligned for making this easy :) Benchmark results (from my i5-2500K): ```text test slice::reverse_u8 ... bench: 273,836 ns/iter (+/- 15,592) = 3829 MB/s test slice::reverse_u16 ... bench: 139,793 ns/iter (+/- 17,748) = 7500 MB/s test slice::reverse_u32 ... bench: 74,997 ns/iter (+/- 5,130) = 13981 MB/s test slice::reverse_u64 ... bench: 47,452 ns/iter (+/- 2,213) = 22097 MB/s test slice::reverse_u8 ... bench: 52,170 ns/iter (+/- 3,962) = 20099 MB/s test slice::reverse_u16 ... bench: 93,330 ns/iter (+/- 4,412) = 11235 MB/s test slice::reverse_u32 ... bench: 74,731 ns/iter (+/- 1,425) = 14031 MB/s test slice::reverse_u64 ... bench: 47,556 ns/iter (+/- 3,025) = 22049 MB/s ``` If you're curious about the assembly, instead of doing this ``` movzx eax, byte ptr [rdi] movzx ecx, byte ptr [rsi] mov byte ptr [rdi], cl mov byte ptr [rsi], al ``` it does this ``` mov rax, qword ptr [rdx] mov rbx, qword ptr [r11 + rcx - 8] bswap rbx mov qword ptr [rdx], rbx bswap rax mov qword ptr [r11 + rcx - 8], rax ```
Configuration menu - View commit details
-
Copy full SHA for 78aee08 - Browse repository at this point
Copy the full SHA 78aee08View commit details -
Rollup merge of rust-lang#41809 - gamazeps:thread-docs, r=steveklabnik
[DOC] Improve the thread::park and thread::unpark documentation Part of rust-lang#29378 . Takes care of the documentation for `park`, `park_duration` and also improves the `unpark` example. - `park should` have its module documentation inlined here, and cleaned up. - `park_timeout` could use links to `park`.
Configuration menu - View commit details
-
Copy full SHA for b42862b - Browse repository at this point
Copy the full SHA b42862bView commit details -
Rollup merge of rust-lang#41815 - Yamakaky:improve-backtrace-bottom, …
…r=alexcrichton Improve cleaning of the bottom of the backtrace Following rust-lang#40264. It only cleans the bottom of the trace (after the main). It handles correctly the normal main, tests, benchmarks and threads. I kept `skipped_before` since it will be used later for the cleaning of the top.
Configuration menu - View commit details
-
Copy full SHA for 8078fdb - Browse repository at this point
Copy the full SHA 8078fdbView commit details -
Rollup merge of rust-lang#41861 - arthurprs:update-jemalloc, r=alexcr…
…ichton Update jemalloc to 4.5.0 * pointing jemalloc submodule to the 4.5.0 HEAD + generated configure script * removed the now unnecessary extra config for windows. jemalloc is now much better at configuring itself overall. Let's see what the CI think.
Configuration menu - View commit details
-
Copy full SHA for f8ccbec - Browse repository at this point
Copy the full SHA f8ccbecView commit details -
Rollup merge of rust-lang#41862 - GuillaumeGomez:improve-e0477, r=nagisa
Improve E0477 error message Part of rust-lang#41816. r? @nagisa
Configuration menu - View commit details
-
Copy full SHA for 8ed9f3d - Browse repository at this point
Copy the full SHA 8ed9f3dView commit details -
Rollup merge of rust-lang#41863 - malbarbo:update-android-builder, r=…
…alexcrichton ci: Update android ndk and sdk Make install-sdk.sh and install-ndk.sh more generic so future updates can be made directly on Dockerfile. Update ndk to r13b, which will be necessary to make host builds for android (in the future). Update sdk to r25.2.5 (maybe some emulator performance improvement).
Configuration menu - View commit details
-
Copy full SHA for 3f42fbb - Browse repository at this point
Copy the full SHA 3f42fbbView commit details -
Rollup merge of rust-lang#41864 - malbarbo:android-docker, r=alexcric…
…hton Add disabled android host builders Introduce the concept of disabled builder. A disabled builder is one that is not run by travis. It is intended to be run by the user who wants a rustc for a tier 2 or 3 platform. Off corse, there is no guarantee that it will work.
Configuration menu - View commit details
-
Copy full SHA for 57a593f - Browse repository at this point
Copy the full SHA 57a593fView commit details