Skip to content

Conversation

@jfmengels
Copy link

This improves the performance of the join function, and also simplifies it. The function was unnecessarily pattern matching on the inner Result, unwrapping and wrapping it again.

Here is a benchmark: https://ellie-app.com/fCBSHtZqVvya1

Screenshot 2021-10-20 at 11 46 22

The performance improvements are not amazing, but it's IMO sufficient to warrant the change (especially since it also simplifies the implementation).

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.

1 participant