diff options
| author | Steven Allen <steven@stebalien.com> | 2015-04-21 17:43:10 -0400 |
|---|---|---|
| committer | Steven Allen <steven@stebalien.com> | 2015-05-05 14:17:23 -0400 |
| commit | 3fcbc31489cafc731d8c7212ffc7341fa5d80299 (patch) | |
| tree | bcb7eb6bb045f1ea5a840e5e8352bb53d974d023 /src/libstd/sync | |
| parent | 6cd748611346dec3181f81ca3aa551cce0529343 (diff) | |
| download | rust-3fcbc31489cafc731d8c7212ffc7341fa5d80299.tar.gz rust-3fcbc31489cafc731d8c7212ffc7341fa5d80299.zip | |
Optimize iterator adapters.
Specifically, make count, nth, and last call the corresponding methods on the underlying iterator where possible. This way, if the underlying iterator has an optimized count, nth, or last implementations (e.g. slice::Iter), these methods will propagate these optimizations. Additionally, change Skip::next to take advantage of a potentially optimized nth method on the underlying iterator.
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions
