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

Zip and combine performance #2308

Merged
merged 15 commits into from
Oct 20, 2020
Merged

Zip and combine performance #2308

merged 15 commits into from
Oct 20, 2020

Conversation

qwwdfsad
Copy link
Collaborator

No description provided.

    * Get rid of two code paths
    * Get rid of accidental O(N^2) where N is the number of flows
    * Get rid of select that hits performance hard

Fixes #2296
    * Make it completely fair, tho backwards incompatible
    * Optimize it here and there
    * Add more tests
    * Do not allocate array on each transform call in combine, do it only for combineTransform
    * Simplify zip operator even further
    * Get rid of crossinline in combine to fix weird Android crashes

Fixes #1743
Fixes #1683
    * withContextUndispatched properly wraps completion into CoroutineStackFrame
    * SafeCollector that mimics Continuation properly implements and updates CoroutineStackFrame
Copy link
Contributor

@elizarov elizarov left a comment

Choose a reason for hiding this comment

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

🚀 Great!
(however, LocalAtomicRef can be removed)

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

4 participants