about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2015-04-21 17:43:10 -0400
committerSteven Allen <steven@stebalien.com>2015-05-05 14:17:23 -0400
commit3fcbc31489cafc731d8c7212ffc7341fa5d80299 (patch)
treebcb7eb6bb045f1ea5a840e5e8352bb53d974d023 /src/libstd/sync
parent6cd748611346dec3181f81ca3aa551cce0529343 (diff)
downloadrust-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