Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Use NIO's primitive functions for flatMap and its siblings. #211

Merged
merged 4 commits into from
Nov 23, 2019

Conversation

MrMage
Copy link
Contributor

@MrMage MrMage commented Nov 13, 2019

Also fixes a stack overflow in case of many nested flat maps (see the tests). Plus, it speeds up testFlatMapPerformance by about 20%:

Screen Shot 2019-11-13 at 16 32 42

Thanks to @weissi for finding the culprit and suggesting a fix as well as tests.

Also fixes a stack overflow in case of many nested flat maps (see the tests). Plus, it speeds up `testFlatMapPerformance` by about 20%.
@MrMage
Copy link
Contributor Author

MrMage commented Nov 18, 2019

@tanner0101 would you mind reviewing this?

Copy link
Sponsor Member

@MrLotU MrLotU left a comment

Choose a reason for hiding this comment

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

LGTM

@MrMage
Copy link
Contributor Author

MrMage commented Nov 22, 2019

Thanks @MrLotU! Could anyone with merge rights merge this?

@MrLotU
Copy link
Sponsor Member

MrLotU commented Nov 22, 2019

@MrMage There are a few issues with the tests. I'm currently working on resolving those and will merge & tag this once done 😄

@MrLotU MrLotU merged commit 10d3336 into vapor:master Nov 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants