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

Increased performance of joining signals by a factor of around 5 #773

Merged

Conversation

rocketnik
Copy link
Contributor

this becomes relevant, when joining 1000 signals and more

Checklist

✅ Updated CHANGELOG.md.

Nikolas Mayr added 2 commits February 13, 2020 15:13
…is becomes relevant, when joining a 1000 signals and more
@rocketnik rocketnik changed the title increased performance of joining signals by a factor of around 5 Increased performance of joining signals by a factor of around 5 Feb 13, 2020
@@ -1680,7 +1680,7 @@ extension Signal {
return true
}

_haveAllSentInitial = values.reduce(true) { $0 && !($1 is Placeholder) }
_haveAllSentInitial = values.allSatisfy{ !($0 is Placeholder) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_haveAllSentInitial = values.allSatisfy{ !($0 is Placeholder) }
_haveAllSentInitial = values.allSatisfy { !($0 is Placeholder) }

@andersio andersio merged commit df18eb3 into ReactiveCocoa:master Feb 18, 2020
rocketnik pushed a commit to rocket-internet-berlin/ReactiveSwift that referenced this pull request Feb 18, 2020
Increased performance of joining signals by a factor of around 5 (ReactiveCocoa#773)
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