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

Minor performance optimization to ValueCoercionHelper.valuePosition #674

Merged
merged 1 commit into from
Jun 5, 2021
Merged

Minor performance optimization to ValueCoercionHelper.valuePosition #674

merged 1 commit into from
Jun 5, 2021

Conversation

agourlay
Copy link
Contributor

@agourlay agourlay commented Jun 4, 2021

This function shows up while profiling mostly due to the creation of the View which is not strictly necessary.

The proposed implementation only relies on collectFirst which should be significantly faster than view.collect.headOption

This function shows up while profiling mostly due to the creation of the `View` which is not strictly necessary.

The proposed implementation only relies on `collectFirst` which should be significantly faster than `view.collect.headOption`
@sh0hei
Copy link
Member

sh0hei commented Jun 5, 2021

@agourlay Thanks a lot !

@sh0hei sh0hei merged commit 9d4bf11 into sangria-graphql:main Jun 5, 2021
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