-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Internal iterators (e.g., Iterator::fold(...)
) often optimize better (e.g., in Zip
, FlatMap
, etc...) as they don't need to repeatedly check the entire state of the iterator every iteration. Given that FromIterator
and Extend
implementations consume the entire iterator, they could use internal iterators and take advantage of this fact.
(I have no benchmarks or code and don't really have time to do anything but suggest that someone else look into this ATM, sorry.)
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.