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

AVRO-3722 [ruby] Eagerly Initialize Instance Variables in Ruby Implementation #2132

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

tenderlove
Copy link
Contributor

This commit eagerly initializes the @type_adapter instance variable to nil so that implementations can see better inline cache hits

What is the purpose of the change

Improving inline cache performance with the Ruby AVRO gem.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Here is the JIRA ticket

Thanks!

This commit eagerly initializes the `@type_adapter` instance variable to
`nil` so that implementations can see better inline cache hits
@github-actions github-actions bot added the Ruby label Mar 8, 2023
@tjwp tjwp self-requested a review March 8, 2023 17:39
Copy link
Contributor

@tjwp tjwp left a comment

Choose a reason for hiding this comment

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

I triggered the CI run and will merge after that.

@tjwp tjwp merged commit d797c78 into apache:master Mar 8, 2023
tjwp pushed a commit that referenced this pull request Mar 8, 2023
…line cache hits (#2132)

Eagerly initialize the `@type_adapter` instance variable to `nil` to see better inline cache hits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants