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 parts of #691 "refactor suspend children" #697

Merged
merged 1 commit into from
Mar 1, 2015

Conversation

HCanber
Copy link
Contributor

@HCanber HCanber commented Mar 1, 2015

This reverts parts of commit a435803.

The previous version was optimized for the most common scenario, when exceptFor == null.
The LINQ expression introduced in #691 is creating a list every time and uses more enumerators. It also makes a call to List<T>.Contains() when we know it's not necessary.

Normally LINQ expression can make loops more readable, bu in this case, and it might come down to a matter of taste, I don't think the LINQ version was more readable.

This reverts commit a435803.

The previous version was optimized for the most common scenario, when exceptFor == null.
The LINQ expression introduced in akkadotnet#691 is creating a list every time and uses more enumerators.
rogeralsing added a commit that referenced this pull request Mar 1, 2015
Revert parts of #691 "refactor suspend children"
@rogeralsing rogeralsing merged commit a4c1ada into akkadotnet:dev Mar 1, 2015
@rodrigovidal
Copy link
Contributor

Again, I would like to see this kind of optimization justified. Suspend actors is not a thing you do 1000x per second, I think.

I can't believe that you don't think the linq version is more readable. :)

@HCanber HCanber deleted the revert-parts-of-691 branch March 2, 2015 06:50
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.

4 participants