René's URL Explorer Experiment


Title: perf: avoid allocating a mapping lambda on every labelValues() call by david-mollitor-db · Pull Request #2442 · prometheus/client_java · GitHub

Open Graph Title: perf: avoid allocating a mapping lambda on every labelValues() call by david-mollitor-db · Pull Request #2442 · prometheus/client_java

X Title: perf: avoid allocating a mapping lambda on every labelValues() call by david-mollitor-db · Pull Request #2442 · prometheus/client_java

Description: Prometheus instrumentation library for JVM applications - perf: avoid allocating a mapping lambda on every labelValues() call by david-mollitor-db · Pull Request #2442 · prometheus/client_java

Open Graph Description: What StatefulMetric.labelValues(...) — the path every counter.labelValues(...).inc() / histogram.labelValues(...).observe(...) goes through — called data.computeIfAbsent(key, l -> newDataPoint()...

X Description: What StatefulMetric.labelValues(...) — the path every counter.labelValues(...).inc() / histogram.labelValues(...).observe(...) goes through — called data.computeIfAbsent(key, l -> newDataPoi...

Opengraph URL: https://github.com/prometheus/client_java/pull/2442

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:2703f6d1-308c-a42f-a858-ba5b2f1c0ed7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9722:188B9A:4DEFCF:6A1192:6AFB9EE2
html-safe-noncef43814b1917eeb4dc0903f9da8c13f2876b3a141d45596a6e8e2482a6d3c6aeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzIyOjE4OEI5QTo0REVGQ0Y6NkExMTkyOjZBRkI5RUUyIiwidmlzaXRvcl9pZCI6IjkwODkzMTAxNTY4MDY5NjAzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac95973e78f81de3384bf15b611921765bc1bcdd14f9e9f3e934a8241c5ae63896
hovercard-subject-tagpull_request:4415794249
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/prometheus/client_java/2442/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b9af6586f3308078d8c32f4d7a59bb32d468c1e3e9a6d45a53706982da7bbf2c/prometheus/client_java/pull/2442
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b9af6586f3308078d8c32f4d7a59bb32d468c1e3e9a6d45a53706982da7bbf2c/prometheus/client_java/pull/2442
og:image:altWhat StatefulMetric.labelValues(...) — the path every counter.labelValues(...).inc() / histogram.labelValues(...).observe(...) goes through — called data.computeIfAbsent(key, l -> newDataPoint()...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavid-mollitor-db
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-cache
go-importgithub.com/prometheus/client_java git https://github.com/prometheus/client_java.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id7997879
octolytics-dimension-repository_nwoprometheus/client_java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7997879
octolytics-dimension-repository_network_root_nwoprometheus/client_java
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
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/prometheus/client_java/pull/2442#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fpull%2F2442
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fpull%2F2442
Sign uphttps://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=prometheus%2Fclient_java
Reloadhttps://github.com/prometheus/client_java/pull/2442
Reloadhttps://github.com/prometheus/client_java/pull/2442
Reloadhttps://github.com/prometheus/client_java/pull/2442
prometheushttps://github.com/prometheus
client_javahttps://github.com/prometheus/client_java
Codehttps://github.com/prometheus/client_java
Issues12 (12)https://github.com/prometheus/client_java/issues
Pull requests18 (18)https://github.com/prometheus/client_java/pulls
Actionshttps://github.com/prometheus/client_java/actions
Projectshttps://github.com/prometheus/client_java/projects
Security and qualityhttps://github.com/prometheus/client_java/security
Insightshttps://github.com/prometheus/client_java/pulse
https://github.com/prometheus/client_java
zeitlingerhttps://github.com/zeitlinger
prometheus:mainhttps://github.com/prometheus/client_java/tree/main
david-mollitor-db:labelvalues-fast-pathhttps://github.com/david-mollitor-db/client_java/tree/labelvalues-fast-path
Conversationhttps://github.com/prometheus/client_java/pull/2442
Commits2 (2)https://github.com/prometheus/client_java/pull/2442/commits
Checkshttps://github.com/prometheus/client_java/pull/2442/checks
Files changedhttps://github.com/prometheus/client_java/pull/2442/files
perf: avoid allocating a mapping lambda on every labelValues() callhttps://github.com/prometheus/client_java/pull/2442#top
zeitlingerhttps://github.com/zeitlinger
prometheus:mainhttps://github.com/prometheus/client_java/tree/main
david-mollitor-db:labelvalues-fast-pathhttps://github.com/david-mollitor-db/client_java/tree/labelvalues-fast-path
https://github.com/david-mollitor-db
david-mollitor-dbhttps://github.com/david-mollitor-db
Sep 1, 2026https://github.com/prometheus/client_java/pull/2442#issue-5316208024
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/david-mollitor-db
david-mollitor-dbhttps://github.com/david-mollitor-db
dhoardhttps://github.com/dhoard
fstabhttps://github.com/fstab
jaydelucahttps://github.com/jaydeluca
zeitlingerhttps://github.com/zeitlinger
code ownershttps://github.com/prometheus/client_java/blob/e43f4517810e3763fe863e2b84b55742b76df4c3/CODEOWNERS#L4
September 1, 2026 19:57https://github.com/prometheus/client_java/pull/2442#event-30370791267
https://github.com/david-mollitor-db
perf: avoid allocating a mapping lambda on every labelValues() callhttps://github.com/prometheus/client_java/pull/2442/commits/6bcd09681cc98bdfa5aa1ef7394322aff618b465
6bcd096https://github.com/prometheus/client_java/pull/2442/commits/6bcd09681cc98bdfa5aa1ef7394322aff618b465
https://github.com/david-mollitor-db
david-mollitor-dbhttps://github.com/david-mollitor-db
force-pushedhttps://github.com/prometheus/client_java/compare/bf05f3b4c25b57929cfcaf2dad47fd2bfeb471b5..6bcd09681cc98bdfa5aa1ef7394322aff618b465
bf05f3bhttps://github.com/prometheus/client_java/commit/bf05f3b4c25b57929cfcaf2dad47fd2bfeb471b5
6bcd096https://github.com/prometheus/client_java/commit/6bcd09681cc98bdfa5aa1ef7394322aff618b465
Compare https://github.com/prometheus/client_java/compare/bf05f3b4c25b57929cfcaf2dad47fd2bfeb471b5..6bcd09681cc98bdfa5aa1ef7394322aff618b465
September 14, 2026 13:46https://github.com/prometheus/client_java/pull/2442#event-31104797016
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
benchmark https://github.com/prometheus/client_java/issues?q=state%3Aopen%20label%3Abenchmark
Sep 15, 2026https://github.com/prometheus/client_java/pull/2442#event-31166334574
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
Sep 15, 2026 https://github.com/prometheus/client_java/pull/2442#ref-pullrequest-5461152308
test: focus PR benchmarks on client_java and measure label lookups #2468 https://github.com/prometheus/client_java/pull/2468
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
Sep 15, 2026https://github.com/prometheus/client_java/pull/2442#issuecomment-5679240397
#2468https://github.com/prometheus/client_java/pull/2468
#2468https://github.com/prometheus/client_java/pull/2468
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 15, 2026https://github.com/prometheus/client_java/pull/2442#issuecomment-5679947970
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/prometheus/client_java/actions/runs/34996050156https://github.com/prometheus/client_java/actions/runs/34996050156
491ce2bhttps://github.com/prometheus/client_java/commit/491ce2b8ce3f8c1009b6155786754b381908be6c
491ce2bhttps://github.com/prometheus/client_java/commit/491ce2b8ce3f8c1009b6155786754b381908be6c
59ca1f0https://github.com/prometheus/client_java/commit/59ca1f0de4637fe8f4c72baac6910b85c0e87f5d
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
Sep 15, 2026https://github.com/prometheus/client_java/pull/2442#issuecomment-5681300384
#2468https://github.com/prometheus/client_java/pull/2468
#2471https://github.com/prometheus/client_java/pull/2471
#2442https://github.com/prometheus/client_java/pull/2442
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
zeitlingerhttps://github.com/zeitlinger
Sep 15, 2026 https://github.com/prometheus/client_java/pull/2442#ref-commit-59ca1f0
https://github.com/zeitlinger
https://github.com/jaydeluca
test: focus PR benchmarks on client_java and measure label lookups (https://github.com/prometheus/client_java/commit/59ca1f0de4637fe8f4c72baac6910b85c0e87f5d
#…https://github.com/prometheus/client_java/pull/2468
59ca1f0https://github.com/prometheus/client_java/commit/59ca1f0de4637fe8f4c72baac6910b85c0e87f5d
…2468https://github.com/prometheus/client_java/pull/2468
#2442https://github.com/prometheus/client_java/pull/2442
#2442https://github.com/prometheus/client_java/pull/2442
https://github.com/zeitlinger
Merge branch 'main' into labelvalues-fast-pathhttps://github.com/prometheus/client_java/pull/2442/commits/491ce2b8ce3f8c1009b6155786754b381908be6c
491ce2bhttps://github.com/prometheus/client_java/pull/2442/commits/491ce2b8ce3f8c1009b6155786754b381908be6c
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
benchmark https://github.com/prometheus/client_java/issues?q=state%3Aopen%20label%3Abenchmark
benchmark https://github.com/prometheus/client_java/issues?q=state%3Aopen%20label%3Abenchmark
Sep 15, 2026https://github.com/prometheus/client_java/pull/2442#event-31188385552
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
Sep 16, 2026 https://github.com/prometheus/client_java/pull/2442#pullrequestreview-5219149695
View reviewed changes https://github.com/prometheus/client_java/pull/2442/files/491ce2b8ce3f8c1009b6155786754b381908be6c
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
085263bhttps://github.com/prometheus/client_java/commit/085263b14478421f0fe992701ce5f608d7c2e7cf
Sep 16, 2026https://github.com/prometheus/client_java/pull/2442#event-31224308966
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
Sep 16, 2026https://github.com/prometheus/client_java/pull/2442#issuecomment-5692970715
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.co/hiddenchars
https://github.com/prometheus/client_java/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fpull%2F2442
https://github.com/zeitlinger
zeitlinger https://github.com/zeitlinger
https://github.com/prometheus/client_java/pull/2442/files/491ce2b8ce3f8c1009b6155786754b381908be6c
https://github.com/fstab
fstab https://github.com/fstab
https://github.com/dhoard
dhoard https://github.com/dhoard
https://github.com/jaydeluca
jaydeluca https://github.com/jaydeluca
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
benchmark https://github.com/prometheus/client_java/issues?q=state%3Aopen%20label%3Abenchmark
Please reload this pagehttps://github.com/prometheus/client_java/pull/2442
https://github.com/david-mollitor-db
https://github.com/zeitlinger
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.