diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-04 16:22:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-04 17:04:00 +1000 |
| commit | 2a3a5447418cc8e7a8b36ae4c9bdf8798a20b873 (patch) | |
| tree | e2acf805add3575878ea91f09da43e23ab0dfe69 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 5515a976464e488949a6a7324ac41ecaf3246a19 (diff) | |
| download | rust-2a3a5447418cc8e7a8b36ae4c9bdf8798a20b873.tar.gz rust-2a3a5447418cc8e7a8b36ae4c9bdf8798a20b873.zip | |
Replace `flat_map()` with `filter_map()` in `is_useful_specialized()`.
`filter_map()` is less general, but more efficient, and has the same effect in this case. This commit reduces the instruction count for `unicode_normalization-check-clean` by about 2%.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
