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

Revert "Optimization: Optimize CollectionDecorator Enumerable behavior" #801

Merged

Conversation

codebycliff
Copy link
Collaborator

I'm reverting this pull request for the time being. It was just a performance optimization to begin with. It caused some issues as noted in this thread. Furthermore, running the benchmarks again are returning inconsistent results. This time around, it's showing the performance being slightly better pre-patch. I'm not sure if this is just do to inconsistencies on my machine or what. Either way, I think this is the safest bet until we can resolve the issues noted above and provide convincing benchmarks.

codebycliff referenced this pull request May 5, 2017
* Optimization: Prevent duplicate iteration

* Don't delegate Enumerable instance methods since CollectionDecorator includes Enumerable itself
@codebycliff codebycliff merged commit d7aa63b into master May 5, 2017
@codebycliff codebycliff deleted the revert-707-optimization/prevent-duplicate-iteration branch May 5, 2017 15:53
@clemens
Copy link
Contributor

clemens commented May 8, 2017

Too bad that this didn't work without issues.

The part with performance being better pre-patch seems odd to me since there are obviously fewer iterations. But since there are other issues anyway, I guess that doesn't matter much.

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

Successfully merging this pull request may close these issues.

None yet

2 participants