about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-06-19 18:44:05 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-06-19 18:44:57 +0300
commitae8545bd146659f6ed4b063166e382da623bc6f8 (patch)
tree8ce656f01c7fd7c1b274bec337243cf233cab8d3 /src/libstd/thread
parent5ce5126199d0edf278ef0d9bb60534770d96f3f6 (diff)
downloadrust-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