Skip to content

Conversation

@DanielThomas
Copy link
Contributor

@DanielThomas DanielThomas commented Mar 1, 2024

Quick follow up from #3478 to intern field names which allows object identity equality checks for String.equals and when looking up field definitions by name. Benchmark result here:

#3478 (comment)

@Override
public List<GraphQLNamedOutputType> getInterfaces() {
if (replacedInterfaces != null) {
return ImmutableList.copyOf(replacedInterfaces);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are already immutable, noticed while I was reviewing the changes.

@DanielThomas DanielThomas force-pushed the dannyt/intern-field-names branch from 7f4e4c5 to 9ee1f6a Compare March 1, 2024 23:12
@bbakerman bbakerman added this to the 2024 April: breaking changes milestone Mar 5, 2024
@bbakerman bbakerman added the performance work that is primarily targeted as performance improvements label Mar 5, 2024
@bbakerman bbakerman changed the base branch from master to netflix-interning March 5, 2024 09:00
@bbakerman
Copy link
Member

I want to do some wteaks ot this PR so I am going to merge it in to this branch

@bbakerman bbakerman merged commit baa2452 into graphql-java:netflix-interning Mar 5, 2024
@bbakerman
Copy link
Member

Ahh shit... I stuffed up the branch starting point.... Hmmm

bbakerman added a commit that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance work that is primarily targeted as performance improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants