diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-31 11:03:46 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-31 11:03:46 +0300 |
| commit | 4a4315bf4bbd8559020689ff6e99d44004c8adb8 (patch) | |
| tree | b7b2cde3b45203f1faf3e17530ff03a1965c2187 /src/libstd/array.rs | |
| parent | 78c4d53871b3d75b4de5f96cb1f9cdc11648ccc6 (diff) | |
| download | rust-4a4315bf4bbd8559020689ff6e99d44004c8adb8.tar.gz rust-4a4315bf4bbd8559020689ff6e99d44004c8adb8.zip | |
Inline hash_table::calculate_offsets, used by iterators.
The `HashMap` and `HashSet` iterators use `RawTable::first_bucket_raw` which is generic and will get inlined cross-crate. However, `first_bucket_raw` calls `calculate_offsets` and the call doesn't get inlined, despite being a simple function. This missing `#[inline]` results in `hash_table::calculate_offsets` showing up at the top of a callgrind profile with 3 million calls (for the testcase in #25916).
Diffstat (limited to 'src/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions
