Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffering #87

Open
GoogleCodeExporter opened this issue Oct 27, 2015 · 2 comments
Open

Buffering #87

GoogleCodeExporter opened this issue Oct 27, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The use of buffering on Repeat() and Cartesian() is currently commented as a 
TODO. The attached patch:

1. Implements a buffering class that buffers enumerables in memory.
2. Changes Repeat() and Cartesian to use this buffering.
3. Further changes Repeat() to skip this if the count is 0 or 1.
4. Defines an IBufferedEnumerable<T> interfaces, documented as adding a 
buffering guarantee to IEnumerable<T>.
5. Defines two overloads of a method to create such a buffered instance. One of 
which insists that buffering happen even if the source implements 
ICollection<T>. (Otherwise it is assumed that the source already serves as a 
buffer adequately).

In short: Deals with the two TODO items, and brings the advantage of the code 
needed to do so, to the user.

Original issue reported on code.google.com by jonhanna...@gmail.com on 12 Dec 2013 at 2:46

Attachments:

@GoogleCodeExporter
Copy link
Author

Sorry, there was a slight error in the XML documentation. Further patch:

Original comment by jonhanna...@gmail.com on 12 Dec 2013 at 2:52

Attachments:

@GoogleCodeExporter
Copy link
Author

This issue has been migrated to:
https://github.com/MoreLINQ/morelinq/issues/87
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 21 Aug 2015 at 6:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant