Optimize DataFetchingSelectionSet.getImmediateFields() to avoid traversing descendants#3855
Conversation
|
Hey @timward60 ... thanks a lot for the PR and even more for the Benchmark. I have a request: We just introduced automated performance tests, which enables us to track the performance much better over time as it is executed in a stable reproducible environment. Can you create another PR which moves the We can merge this PR first and it gives us a clear baseline for the improvements. Thanks a lot |
Nice to see, created the PR here: #3856 |
96fab24 to
0868473
Compare
|
@timward60 you can see the performance results from master tests here: https://github.com/graphql-java/graphql-java/tree/master/performance-results |
Addresses #3854.
Description
Computes immediate fields only for
getImmediateFields()to avoid cost of traversing the entire sub-tree to build glob-patterns for descendant fields.Benchmark
Before:
After: