8000 Interleave eagerly calls MoveNext · Issue #694 · morelinq/MoreLINQ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Interleave eagerly calls MoveNext #694
Closed
@Orace

Description

@Orace

From this part of the code:

// yield the values of each iterator's current position
for (var index = 0; index < iterCount; index++)
{
yield return iteratorList[index].Current;
}

We can see that interleave eagerly have called MoveNext on all the enumerators from all the input sequence before yielding the first value.

This is useless for the ImbalancedInterleaveStrategy.Skip strategy. And this strategy is the only one accessible from the user (the strategies enum is not public).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0