Skip to content

Commit febdc3b

Browse files
author
Ariel Ben-Yehuda
committedAug 9, 2015
Mark round_up_to_next as inline
This speeds up rustc on rust-lang#25916 from 1.36Â0.022s to 1.326Â0.025s
1 parent a5d33d8 commit febdc3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/libstd/collections/hash/table.rs

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ impl<K, V, M: Deref<Target=RawTable<K, V>>> GapThenFull<K, V, M> {
511511
/// # Panics
512512
///
513513
/// Panics if `target_alignment` is not a power of two.
514+
#[inline]
514515
fn round_up_to_next(unrounded: usize, target_alignment: usize) -> usize {
515516
assert!(target_alignment.is_power_of_two());
516517
(unrounded + target_alignment - 1) & !(target_alignment - 1)

0 commit comments

Comments
 (0)
Please sign in to comment.