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

Cleanup type assertions in the linkedHashmap #1341

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Just a small code cleanup I noticed when reviewing the locking change.

How this works

Avoids referencing a field of a struct that we just performed a type assertion on... On some places this reduces the number of type assertions... There may technically be a performance hit in some places because it copies the struct into a new var... If there is I don't really care... (and I feel like the compiler should be able to optimize it out if it's smart enough)

How this was tested

CI

@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Apr 13, 2023
@StephenButtolph StephenButtolph added this to the v1.10.1 milestone Apr 13, 2023
@StephenButtolph StephenButtolph self-assigned this Apr 13, 2023
@StephenButtolph StephenButtolph merged commit 8071dda into dev Apr 13, 2023
@StephenButtolph StephenButtolph deleted the reduce-lhm-type-assertions branch April 13, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants