René's URL Explorer Experiment


Title: Reduce allocations in Async$Many and ResultPath on execution hot path by andimarek · Pull Request #4252 · graphql-java/graphql-java · GitHub

Open Graph Title: Reduce allocations in Async$Many and ResultPath on execution hot path by andimarek · Pull Request #4252 · graphql-java/graphql-java

X Title: Reduce allocations in Async$Many and ResultPath on execution hot path by andimarek · Pull Request #4252 · graphql-java/graphql-java

Description: Summary Three execution hot-path optimizations identified via async-profiler: Async$Many.materialisedList(): Replace ArrayList copy with zero-copy Arrays.asList() wrapper — eliminates one allocation + array copy per selection set on the synchronous execution path ResultPath.toStringValue: Make lazy (computed on first toString() call) — the string representation is never read during normal execution, only for error reporting GraphQLCodeRegistry DataFetcher lookup: Add public getDataFetcher(String, String, GraphQLFieldDefinition) overload using a nested Map>> for fast lookup by type/field name strings, avoiding creation of a throwaway FieldCoordinates object on every field fetch (~54 KB/op reduction in allocations) Also adds ExecutionBenchmark JMH benchmark and async-profiler support to build.gradle. Benchmark results Existing benchmarks (master vs optimized) Benchmark Metric Master Optimized Change SimpleQueryBenchmark throughput 1929 ops/s 2379 ops/s +23% SimpleQueryBenchmark avg time 0.538 ms/op 0.421 ms/op -22% TwitterBenchmark throughput 167 ops/s 232 ops/s +39% TwitterBenchmark avg time 6.0 ms/op 4.3 ms/op -28% ExecutionBenchmark (new — only on optimized branch) Variant Throughput Avg time Baseline 3414 ops/s 0.294 ms/op DataLoader 2009 ops/s 0.512 ms/op Test plan Full test suite passes (./gradlew test) JMH benchmarks run successfully Arrays.asList returns a fixed-size list — verified no consumer mutates the returned list Lazy ResultPath.toString() verified safe: same pattern as hashCode() (racy single-check idiom on immutable data) CodeRegistry fast-path produces identical results to existing getDataFetcher — same lookup logic, different key structure 🤖 Generated with Claude Code

Open Graph Description: Summary Three execution hot-path optimizations identified via async-profiler: Async$Many.materialisedList(): Replace ArrayList copy with zero-copy Arrays.asList() wrapper — eliminates one allocati...

X Description: Summary Three execution hot-path optimizations identified via async-profiler: Async$Many.materialisedList(): Replace ArrayList copy with zero-copy Arrays.asList() wrapper — eliminates one allocati...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/4252

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d335b07f-cb27-bfcb-1dcd-d5f8349ba545
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7D8:357B25:2B9B951:3F1F84E:6A60D738
html-safe-nonce6e179932059d015248abe51f0f79a1135cd588a3ac31501cdee9ae89c7ff432b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0Q4OjM1N0IyNToyQjlCOTUxOjNGMUY4NEU6NkE2MEQ3MzgiLCJ2aXNpdG9yX2lkIjoiMjI2MzczOTczODY1MzUxMzUyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2fae02589d82948f855e43caf43233f6815ca9fdbf8ef487a352b1948cf7ced4
hovercard-subject-tagpull_request:3302063912
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/4252/files
twitter:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
og:image:altSummary Three execution hot-path optimizations identified via async-profiler: Async$Many.materialisedList(): Replace ArrayList copy with zero-copy Arrays.asList() wrapper — eliminates one allocati...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None025e511fb0e6dd11aaa36892212f7bcc13708244bc2bcbeff1cf34fc77723812
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release405b1f59618e9c5e102e2408c26ce58f1937fbca
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4252/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4252%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4252%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4252/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4252/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4252/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 11 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
async-many-materialized-list-optimizationhttps://github.com/graphql-java/graphql-java/tree/async-many-materialized-list-optimization
Conversation 1 https://github.com/graphql-java/graphql-java/pull/4252
Commits 6 https://github.com/graphql-java/graphql-java/pull/4252/commits
Checks 10 https://github.com/graphql-java/graphql-java/pull/4252/checks
Files changed https://github.com/graphql-java/graphql-java/pull/4252/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
Reduce allocations in Async$Many and ResultPath on execution hot path https://github.com/graphql-java/graphql-java/pull/4252/files#top
Show all changes 6 commits https://github.com/graphql-java/graphql-java/pull/4252/files
acc6c10 Avoid redundant array copy in Async$Many for synchronous execution path andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/acc6c1067ae70e5c70674e37113a3905004c8d65
45d13fc Make ResultPath.toStringValue lazy and avoid intermediate string allo… andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/45d13fcc57f03e997c9fdea87f9f9e3b94753f54
659fe34 Add fast-path DataFetcher lookup avoiding FieldCoordinates allocation andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/659fe34179f6c41d9777467ca08d0d42b306effc
9a54c18 Merge remote-tracking branch 'origin/master' into async-many-material… andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/9a54c1810ee7e362f3f5b01618e22707478ee360
4011983 Make fast-path getDataFetcher public and document performance benefit andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/40119835c84b3ecf83b2d6a927f02c1361e1b6a8
c52498b Simplify ResultPath.initString() — inlining is unnecessary with lazy … andimarek Feb 19, 2026 https://github.com/graphql-java/graphql-java/pull/4252/commits/c52498b7b17af69db69538d98cb998b64e348924
Clear filters https://github.com/graphql-java/graphql-java/pull/4252/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
build.gradle https://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
ExecutionBenchmark.java https://github.com/graphql-java/graphql-java/pull/4252/files#diff-35bb2241e314ea74275724056f1a513e2b4c224070d468c904334e9abfce4bf2
Async.java https://github.com/graphql-java/graphql-java/pull/4252/files#diff-a54f8c8ad5f5ee4c43ee9294d25838c5c084c258995415f73569429e40583329
ExecutionStrategy.java https://github.com/graphql-java/graphql-java/pull/4252/files#diff-2ece51452808f5a3fd08db50de534a12806aa6cd4e236c549dff9759884e43ff
ResultPath.java https://github.com/graphql-java/graphql-java/pull/4252/files#diff-9facba5db614a998f5972f229f1dc19255360b7bdb42056d65407ecebcccf67f
GraphQLCodeRegistry.java https://github.com/graphql-java/graphql-java/pull/4252/files#diff-78610afcc65132bb813912baa9f9db27fe4ea29da81bfef4963e48e9d1d2db38
build.gradlehttps://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
View file https://github.com/graphql-java/graphql-java/blob/c52498b7b17af69db69538d98cb998b64e348924/build.gradle
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4252/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
https://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
https://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
https://github.com/graphql-java/graphql-java/pull/4252/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4252/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.