-
Notifications
You must be signed in to change notification settings - Fork 415
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
SkipLast is not optimal #626
Comments
Added a test for Collection
Anyway the current implementation is not really optimal (intermediate object creation, test for null, etc...) This is a big bite and a long running task. |
Yes, I agree with that. In general, the approach and steps to adding something non-trivial and useful has been:
The benefit of 1 is that we can leverage all the tested operations. We need to get coverage reporting added to the project so we can make sure tests are sufficiently covering the code before refactoring wildly. Meanwhile it's better to err on the safe side. Also keep in mind that a lot of the operators in MoreLINQ can be implemented for asynchronous streams and that will explode the implementation base. When you reuse other operators, there will be far less implementation duplication. In the end, we have to strike a balance. |
SkipLast use CountDown and therefor store all the elements.We can manage to store only the number of element to skip.Store the full sequence could and should be avoided.The text was updated successfully, but these errors were encountered: