diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-12-03 22:11:06 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-12-04 15:46:36 +0100 |
| commit | 343b4c321d9ab0e1efc7953a15ee0dbc62c722a9 (patch) | |
| tree | ab3ce820fb0891387c2dc224ce440cb26764f429 /src/test/incremental/thinlto | |
| parent | 7ba762253ccf487ae61b2be45a9edfdf19b79cc0 (diff) | |
| download | rust-343b4c321d9ab0e1efc7953a15ee0dbc62c722a9.tar.gz rust-343b4c321d9ab0e1efc7953a15ee0dbc62c722a9.zip | |
collections: Simplify VecDeque::is_empty
Improve is_empty on the VecDeque and its iterators by just comparing tail and head; this saves a few instructions (to be able to remove the `& (size - 1)` computation, it would have to know that size is a power of two).
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
