diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-06-19 18:44:05 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-06-19 18:44:57 +0300 |
| commit | ae8545bd146659f6ed4b063166e382da623bc6f8 (patch) | |
| tree | 8ce656f01c7fd7c1b274bec337243cf233cab8d3 /src/libstd/thread | |
| parent | 5ce5126199d0edf278ef0d9bb60534770d96f3f6 (diff) | |
| download | rust-ae8545bd146659f6ed4b063166e382da623bc6f8.tar.gz rust-ae8545bd146659f6ed4b063166e382da623bc6f8.zip | |
Memoize types in `is_representable` to avoid exponential worst-case
I could have made representability a cached query, but that would have been added complexity for not much benefit - outside of the exponential worst-case, this pass is fast enough already. Fixes #42747.
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions
