Skip to content

Improve no match performance using a struct#60

Merged
jwoertink merged 2 commits intoluckyframework:mainfrom
garymardell:no-match-performance
Feb 16, 2023
Merged

Improve no match performance using a struct#60
jwoertink merged 2 commits intoluckyframework:mainfrom
garymardell:no-match-performance

Conversation

@garymardell
Copy link
Contributor

Previously in #55 the Match result was converted from a class to a struct however the NoMatch case was left as a class. I also added a case to the benchmark script for this case as previously it was only matches.

Before

Average time: 121.66ms

After

Average time: 114.73ms

Copy link
Member

@jwoertink jwoertink left a comment

Choose a reason for hiding this comment

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

Awesome! Great PR. Thanks 😄

@jwoertink jwoertink merged commit ce3c17a into luckyframework:main Feb 16, 2023
@garymardell garymardell deleted the no-match-performance branch February 16, 2023 19:18
@jwoertink jwoertink mentioned this pull request Mar 10, 2023
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.

2 participants