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

Add LambdaMetafactory support for Method Invokers #501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shalearkane
Copy link

@shalearkane shalearkane commented Jun 21, 2024

This adds

  • LambdaInvoker and FixedLambdaInvoker for efficiently invoking parameter-less class methods (or simple getters)
  • minimum 8% performance improvements for queries invoking such class methods

However, this code fails for static parameter-less methods. In case of failure to create a LambdaInvoker, it falls back to creating a MethodInvoker. There is no performance hit as this happens during initialisation.

This change is inspired by GraphQL-Java's Improved Data Fetching implemented at LambdaFetchingSupport based on LambdaMetafactory.

@shalearkane shalearkane changed the title Add LambdaMetafactory support to call simple getters efficiently Add LambdaMetafactory support for Method Invokers Jun 21, 2024
@shalearkane shalearkane marked this pull request as ready for review June 28, 2024 07:51
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