René's URL Explorer Experiment


Title: Avoid allocations in DataLoaderHelper.dispatch when there's no work by kilink · Pull Request #136 · graphql-java/java-dataloader · GitHub

Open Graph Title: Avoid allocations in DataLoaderHelper.dispatch when there's no work by kilink · Pull Request #136 · graphql-java/java-dataloader

X Title: Avoid allocations in DataLoaderHelper.dispatch when there's no work by kilink · Pull Request #136 · graphql-java/java-dataloader

Description: Bail out early in DataLoaderHelper.dispatch when loaderQueue is empty to avoid unnecessary allocations; additionally, when there is work, size the allocated Lists precisely based on the loaderQueue...

Open Graph Description: Bail out early in DataLoaderHelper.dispatch when loaderQueue is empty to avoid unnecessary allocations; additionally, when there is work, size the allocated Lists precisely based on the loaderQueue...

X Description: Bail out early in DataLoaderHelper.dispatch when loaderQueue is empty to avoid unnecessary allocations; additionally, when there is work, size the allocated Lists precisely based on the loaderQueue...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:bedc27ba-cd21-20b1-7a76-3fb97ffc6d66
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CA0:278CE7:120537F:195B106:696FCA27
html-safe-nonce9473e96eb7bcd274a1e8e4c183ffa9a66986d61573df561d75716d5f7731aab2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0EwOjI3OENFNzoxMjA1MzdGOjE5NUIxMDY6Njk2RkNBMjciLCJ2aXNpdG9yX2lkIjoiMTU0Nzg1MTY5OTIyNzQ0NTc5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf9c6c962dd2805d9f8053ceecfbdaaa71ddba3c14f6251d517f41cd76d3bffe9
hovercard-subject-tagpull_request:1596835780
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/graphql-java/java-dataloader/136/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/929408150c1cf97594ba0e00d7deb56016367b1917ecc6ee9b9cfbef05b0c0fb/graphql-java/java-dataloader/pull/136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/929408150c1cf97594ba0e00d7deb56016367b1917ecc6ee9b9cfbef05b0c0fb/graphql-java/java-dataloader/pull/136
og:image:altBail out early in DataLoaderHelper.dispatch when loaderQueue is empty to avoid unnecessary allocations; additionally, when there is work, size the allocated Lists precisely based on the loaderQueue...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekilink
hostnamegithub.com
expected-hostnamegithub.com
None330ca0f04ee8ecef1da04306a0dd49293f64679ee9a4bd5eaf2e1272bfdcf145
turbo-cache-controlno-preview
go-importgithub.com/graphql-java/java-dataloader git https://github.com/graphql-java/java-dataloader.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id97364654
octolytics-dimension-repository_nwographql-java/java-dataloader
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id97364654
octolytics-dimension-repository_network_root_nwographql-java/java-dataloader
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release816ad575e27a390de2e2089ebe75261d12de9b37
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/java-dataloader/pull/136#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fjava-dataloader%2Fpull%2F136
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fjava-dataloader%2Fpull%2F136
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=graphql-java%2Fjava-dataloader
Reloadhttps://github.com/graphql-java/java-dataloader/pull/136
Reloadhttps://github.com/graphql-java/java-dataloader/pull/136
Reloadhttps://github.com/graphql-java/java-dataloader/pull/136
graphql-java https://github.com/graphql-java
java-dataloaderhttps://github.com/graphql-java/java-dataloader
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fjava-dataloader
Fork 95 https://github.com/login?return_to=%2Fgraphql-java%2Fjava-dataloader
Star 520 https://github.com/login?return_to=%2Fgraphql-java%2Fjava-dataloader
Code https://github.com/graphql-java/java-dataloader
Issues 1 https://github.com/graphql-java/java-dataloader/issues
Pull requests 10 https://github.com/graphql-java/java-dataloader/pulls
Discussions https://github.com/graphql-java/java-dataloader/discussions
Actions https://github.com/graphql-java/java-dataloader/actions
Projects 0 https://github.com/graphql-java/java-dataloader/projects
Wiki https://github.com/graphql-java/java-dataloader/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/graphql-java/java-dataloader/security
Please reload this pagehttps://github.com/graphql-java/java-dataloader/pull/136
Insights https://github.com/graphql-java/java-dataloader/pulse
Code https://github.com/graphql-java/java-dataloader
Issues https://github.com/graphql-java/java-dataloader/issues
Pull requests https://github.com/graphql-java/java-dataloader/pulls
Discussions https://github.com/graphql-java/java-dataloader/discussions
Actions https://github.com/graphql-java/java-dataloader/actions
Projects https://github.com/graphql-java/java-dataloader/projects
Wiki https://github.com/graphql-java/java-dataloader/wiki
Security https://github.com/graphql-java/java-dataloader/security
Insights https://github.com/graphql-java/java-dataloader/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fjava-dataloader%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%2Fjava-dataloader%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/graphql-java/java-dataloader/pull/136#issue-comment-box
bbakermanhttps://github.com/bbakerman
graphql-java:masterhttps://github.com/graphql-java/java-dataloader/tree/master
kilink:data-loader-helper-allocationshttps://github.com/kilink/java-dataloader/tree/data-loader-helper-allocations
Avoid allocations in DataLoaderHelper.dispatch when there's no work https://github.com/graphql-java/java-dataloader/pull/136#top
bbakermanhttps://github.com/bbakerman
graphql-java:masterhttps://github.com/graphql-java/java-dataloader/tree/master
kilink:data-loader-helper-allocationshttps://github.com/kilink/java-dataloader/tree/data-loader-helper-allocations
Conversation 1 https://github.com/graphql-java/java-dataloader/pull/136
Commits 1 https://github.com/graphql-java/java-dataloader/pull/136/commits
Checks 0 https://github.com/graphql-java/java-dataloader/pull/136/checks
Files changed https://github.com/graphql-java/java-dataloader/pull/136/files
Please reload this pagehttps://github.com/graphql-java/java-dataloader/pull/136
https://github.co/hiddenchars
https://github.com/graphql-java/java-dataloader/pull/{{ revealButtonHref }}
https://github.com/kilink
kilinkhttps://github.com/kilink
Nov 10, 2023https://github.com/graphql-java/java-dataloader/pull/136#issue-1988322590
#132https://github.com/graphql-java/java-dataloader/issues/132
Please reload this pagehttps://github.com/graphql-java/java-dataloader/pull/136
https://github.com/kilink
Avoid allocations in DataLoaderHelper.dispatch when there's no workhttps://github.com/graphql-java/java-dataloader/pull/136/commits/6b20182f4d2eb4e52b82949604a7a03cd48e60d4
6b20182https://github.com/graphql-java/java-dataloader/pull/136/commits/6b20182f4d2eb4e52b82949604a7a03cd48e60d4
https://github.com/bbakerman
bbakermanhttps://github.com/bbakerman
Nov 12, 2023 https://github.com/graphql-java/java-dataloader/pull/136#pullrequestreview-1726356506
View reviewed changes https://github.com/graphql-java/java-dataloader/pull/136/files/6b20182f4d2eb4e52b82949604a7a03cd48e60d4
bbakermanhttps://github.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/136#pullrequestreview-1726356506
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/java-dataloader/pull/136
https://github.com/bbakerman
bbakermanhttps://github.com/bbakerman
415ff76https://github.com/graphql-java/java-dataloader/commit/415ff76dc651c05bc1a2e08e10f94cd8c89d196e
Nov 14, 2023https://github.com/graphql-java/java-dataloader/pull/136#event-10949636596
github-merge-queuehttps://github.com/apps/github-merge-queue
Apr 24, 2024 https://github.com/graphql-java/java-dataloader/pull/136#ref-commit-76b2fa1
https://github.com/marketplace/renovate
deps: Update dependency com.graphql-java:java-dataloader to v3.3.0 (m…https://github.com/camunda/camunda/commit/76b2fa16bcdd46090094edbd6b0a30442c3a06a4
76b2fa1https://github.com/camunda/camunda/commit/76b2fa16bcdd46090094edbd6b0a30442c3a06a4
#17708https://github.com/camunda/camunda/pull/17708
https://app.renovatebot.com/images/banner.svg)](https://renovatebot.comhttps://app.renovatebot.com/images/banner.svg)](https://renovatebot.com
https://togithub.com/graphql-java/java-dataloaderhttps://togithub.com/graphql-java/java-dataloader
https://developer.mend.io/api/mc/badges/age/maven/com.graphql-java:java-dataloader/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/https://developer.mend.io/api/mc/badges/age/maven/com.graphql-java:java-dataloader/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/
https://developer.mend.io/api/mc/badges/adoption/maven/com.graphql-java:java-dataloader/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/https://developer.mend.io/api/mc/badges/adoption/maven/com.graphql-java:java-dataloader/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/
https://developer.mend.io/api/mc/badges/compatibility/maven/com.graphql-java:java-dataloader/3.2.0/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/https://developer.mend.io/api/mc/badges/compatibility/maven/com.graphql-java:java-dataloader/3.2.0/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/
https://developer.mend.io/api/mc/badges/confidence/maven/com.graphql-java:java-dataloader/3.2.0/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/https://developer.mend.io/api/mc/badges/confidence/maven/com.graphql-java:java-dataloader/3.2.0/3.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/
https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.3.0https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.3.0
https://togithub.com/graphql-java/java-dataloader/compare/v3.2.2...v3.3.0https://togithub.com/graphql-java/java-dataloader/compare/v3.2.2...v3.3.0
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/dfa1https://togithub.com/dfa1
https://github.com/graphql-java/java-dataloader/pull/142](https://togithub.com/graphql-java/java-dataloader/pull/142)https://github.com/graphql-java/java-dataloader/pull/142](https://togithub.com/graphql-java/java-dataloader/pull/142)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/dfa1https://togithub.com/dfa1
https://github.com/graphql-java/java-dataloader/pull/141](https://togithub.com/graphql-java/java-dataloader/pull/141)https://github.com/graphql-java/java-dataloader/pull/141](https://togithub.com/graphql-java/java-dataloader/pull/141)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/bbakermanhttps://togithub.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/144](https://togithub.com/graphql-java/java-dataloader/pull/144)https://github.com/graphql-java/java-dataloader/pull/144](https://togithub.com/graphql-java/java-dataloader/pull/144)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/bbakermanhttps://togithub.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/145](https://togithub.com/graphql-java/java-dataloader/pull/145)https://github.com/graphql-java/java-dataloader/pull/145](https://togithub.com/graphql-java/java-dataloader/pull/145)
graphql-java/java-dataloader@v3.2.2...v3.3.0https://github.com/graphql-java/java-dataloader/compare/v3.2.2...v3.3.0
https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.2.2https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.2.2
https://togithub.com/graphql-java/java-dataloader/compare/v3.2.1...v3.2.2https://togithub.com/graphql-java/java-dataloader/compare/v3.2.1...v3.2.2
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/kilinkhttps://togithub.com/kilink
https://github.com/graphql-java/java-dataloader/pull/135](https://togithub.com/graphql-java/java-dataloader/pull/135)https://github.com/graphql-java/java-dataloader/pull/135](https://togithub.com/graphql-java/java-dataloader/pull/135)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/kilinkhttps://togithub.com/kilink
https://github.com/graphql-java/java-dataloader/pull/136](https://togithub.com/graphql-java/java-dataloader/pull/136)https://github.com/graphql-java/java-dataloader/pull/136](https://togithub.com/graphql-java/java-dataloader/pull/136)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/kilinkhttps://togithub.com/kilink
https://github.com/graphql-java/java-dataloader/pull/135](https://togithub.com/graphql-java/java-dataloader/pull/135)https://github.com/graphql-java/java-dataloader/pull/135](https://togithub.com/graphql-java/java-dataloader/pull/135)
graphql-java/java-dataloader@v3.2.1...v3.2.2https://github.com/graphql-java/java-dataloader/compare/v3.2.1...v3.2.2
https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.2.1https://togithub.com/graphql-java/java-dataloader/releases/tag/v3.2.1
https://togithub.com/graphql-java/java-dataloader/compare/v3.2.0...v3.2.1https://togithub.com/graphql-java/java-dataloader/compare/v3.2.0...v3.2.1
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/rstatahttps://togithub.com/rstata
https://github.com/graphql-java/java-dataloader/pull/122](https://togithub.com/graphql-java/java-dataloader/pull/122)https://github.com/graphql-java/java-dataloader/pull/122](https://togithub.com/graphql-java/java-dataloader/pull/122)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/dondonzhttps://togithub.com/dondonz
https://github.com/graphql-java/java-dataloader/pull/126](https://togithub.com/graphql-java/java-dataloader/pull/126)https://github.com/graphql-java/java-dataloader/pull/126](https://togithub.com/graphql-java/java-dataloader/pull/126)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/bbakermanhttps://togithub.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/128](https://togithub.com/graphql-java/java-dataloader/pull/128)https://github.com/graphql-java/java-dataloader/pull/128](https://togithub.com/graphql-java/java-dataloader/pull/128)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/bbakermanhttps://togithub.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/133](https://togithub.com/graphql-java/java-dataloader/pull/133)https://github.com/graphql-java/java-dataloader/pull/133](https://togithub.com/graphql-java/java-dataloader/pull/133)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/bbakermanhttps://togithub.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/131](https://togithub.com/graphql-java/java-dataloader/pull/131)https://github.com/graphql-java/java-dataloader/pull/131](https://togithub.com/graphql-java/java-dataloader/pull/131)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/rstatahttps://togithub.com/rstata
https://github.com/graphql-java/java-dataloader/pull/122](https://togithub.com/graphql-java/java-dataloader/pull/122)https://github.com/graphql-java/java-dataloader/pull/122](https://togithub.com/graphql-java/java-dataloader/pull/122)
#8203https://github.com/camunda/camunda/pull/8203
https://togithub.com/dondonzhttps://togithub.com/dondonz
https://github.com/graphql-java/java-dataloader/pull/126](https://togithub.com/graphql-java/java-dataloader/pull/126)https://github.com/graphql-java/java-dataloader/pull/126](https://togithub.com/graphql-java/java-dataloader/pull/126)
graphql-java/java-dataloader@v3.2.0...v3.2.1https://github.com/graphql-java/java-dataloader/compare/v3.2.0...v3.2.1
https://www.mend.io/free-developer-tools/renovate/https://www.mend.io/free-developer-tools/renovate/
https://developer.mend.io/github/camunda/zeebehttps://developer.mend.io/github/camunda/zeebe
https://github.com/kilink
kilinkhttps://github.com/kilink
August 4, 2024 20:36https://github.com/graphql-java/java-dataloader/pull/136#event-13755917378
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fjava-dataloader%2Fpull%2F136
https://github.com/bbakerman
bbakerman https://github.com/bbakerman
https://github.com/graphql-java/java-dataloader/pull/136/files/6b20182f4d2eb4e52b82949604a7a03cd48e60d4
Avoid allocations when dataloader has no work https://github.com/graphql-java/java-dataloader/issues/132
Please reload this pagehttps://github.com/graphql-java/java-dataloader/pull/136
https://github.com/kilink
https://github.com/bbakerman
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.