René's URL Explorer Experiment


Title: Extra allocations in `*TextFormatWriter` because of Java 8 target · Issue #2075 · prometheus/client_java · GitHub

Open Graph Title: Extra allocations in `*TextFormatWriter` because of Java 8 target · Issue #2075 · prometheus/client_java

X Title: Extra allocations in `*TextFormatWriter` because of Java 8 target · Issue #2075 · prometheus/client_java

Description: See this line of code: client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java Line 412 in fa68aa7 writeName(writer, name + (suffix != null ? suffix : "...

Open Graph Description: See this line of code: client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java Line 412 in fa68aa7 writeName(wri...

X Description: See this line of code: client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java Line 412 in fa68aa7 writeName(wri...

Opengraph URL: https://github.com/prometheus/client_java/issues/2075

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extra allocations in `*TextFormatWriter` because of Java 8 target","articleBody":"See this line of code:\n\nhttps://github.com/prometheus/client_java/blob/fa68aa7789c53d54ea1783f120194a3feae7e7b8/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java#L412\n\nBecause of the Java 8 target, the string concatenation gets compiled to something like `new StringBuilder().append(name).append(suffix).toString()`, which allocates the memory at least twice (for the buffer in the `StringBuilder` and for the resulting string).\n\nIf the code was compiled for at least Java 9, it would use `StringConcatFactory`, which in this case would allocate the memory only for the resulting string.\n\nWould the maintainers consider publishing multiple artifacts for different Java targets, or using multi-release JARs for the purpose of this and similar optimizations?","author":{"url":"https://github.com/m-burst","@type":"Person","name":"m-burst"},"datePublished":"2026-04-29T15:37:41Z","url":"https://github.com/prometheus/client_java/issues/2075"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3590032a-0b34-ccc6-566c-7201c3cf316f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCF34:96C99:100EFF:15E27B:6AFBA947
html-safe-noncec7eac7c53d8b526beec707803b9158fd765ffffc1b3431fcc0f1b453d12707d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjM0Ojk2Qzk5OjEwMEVGRjoxNUUyN0I6NkFGQkE5NDciLCJ2aXNpdG9yX2lkIjoiMzk5NDI3NTE3NzExMzAzNzEyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac241cb12a2333dce2ad37a9f1c73e916fb4e1fd4cb86868da2967f67e2517a3d6
hovercard-subject-tagissue:4351803062
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/2075/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6a5e59d593553368cd50b5e02bae660797b1a10c14dc1ce8de0f86066a3de4e8/prometheus/client_java/issues/2075
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a5e59d593553368cd50b5e02bae660797b1a10c14dc1ce8de0f86066a3de4e8/prometheus/client_java/issues/2075
og:image:altSee this line of code: client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java Line 412 in fa68aa7 writeName(wri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamem-burst
hostnamegithub.com
expected-hostnamegithub.com
None03e5090f0cea887cafa036e3af34d7c668d83b5e9e9e03df72a90efb49b69cdf
turbo-cache-controlno-preview
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
release41f00295b9a35dca977890ab83b22788ab211dc8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/prometheus/client_java/issues/2075#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fissues%2F2075
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%2Fissues%2F2075
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=prometheus%2Fclient_java
Reloadhttps://github.com/prometheus/client_java/issues/2075
Reloadhttps://github.com/prometheus/client_java/issues/2075
Reloadhttps://github.com/prometheus/client_java/issues/2075
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
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2075
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2075
Extra allocations in *TextFormatWriter because of Java 8 targethttps://github.com/prometheus/client_java/issues/2075#top
https://github.com/m-burst
m-bursthttps://github.com/m-burst
on Apr 29, 2026https://github.com/prometheus/client_java/issues/2075#issue-4351803062
client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.javahttps://github.com/prometheus/client_java/blob/fa68aa7789c53d54ea1783f120194a3feae7e7b8/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java#L412
fa68aa7https://github.com/prometheus/client_java/commit/fa68aa7789c53d54ea1783f120194a3feae7e7b8
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on Apr 30, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4353064424
@m-bursthttps://github.com/m-burst
https://github.com/m-burst
m-bursthttps://github.com/m-burst
on Apr 30, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4353344603
client_java/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.javahttps://github.com/prometheus/client_java/blob/fa68aa7789c53d54ea1783f120194a3feae7e7b8/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java#L197-L206
fa68aa7https://github.com/prometheus/client_java/commit/fa68aa7789c53d54ea1783f120194a3feae7e7b8
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on Apr 30, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4356005107
zeitlingerhttps://github.com/zeitlinger
on May 6, 2026https://github.com/prometheus/client_java/issues/2075#event-25211713859
fix: Reduce allocations for classic histogram buckets (#2081)https://github.com/prometheus/client_java/commit/edd160ab93254c80250d7cf58a1dcb399fef67a1
#2081https://github.com/prometheus/client_java/pull/2081
edd160ahttps://github.com/prometheus/client_java/commit/edd160ab93254c80250d7cf58a1dcb399fef67a1
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on May 6, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4387690005
https://github.com/m-burst
m-bursthttps://github.com/m-burst
on May 28, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4566039176
@jaydelucahttps://github.com/jaydeluca
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on May 29, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4573872783
@m-bursthttps://github.com/m-burst
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on Jun 3, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4615364679
@m-bursthttps://github.com/m-burst
https://github.com/m-burst
m-bursthttps://github.com/m-burst
on Jun 8, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4648895657
@jaydelucahttps://github.com/jaydeluca
client_java/prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/Exemplars.javahttps://github.com/prometheus/client_java/blob/574fb73e4d7eec6bbfd483378600579b966631a6/prometheus-metrics-model/src/main/java/io/prometheus/metrics/model/snapshots/Exemplars.java#L22-L35
574fb73https://github.com/prometheus/client_java/commit/574fb73e4d7eec6bbfd483378600579b966631a6
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on Jun 8, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4649132886
@m-bursthttps://github.com/m-burst
zeitlingerhttps://github.com/zeitlinger
on Jun 10, 2026https://github.com/prometheus/client_java/issues/2075#event-26564192014
fix: Avoid unnuecessary exemplar allocations (#2209)https://github.com/prometheus/client_java/commit/0b6a91f2bafe0fa15f6fe828f315103d8c20f9f9
#2209https://github.com/prometheus/client_java/pull/2209
0b6a91fhttps://github.com/prometheus/client_java/commit/0b6a91f2bafe0fa15f6fe828f315103d8c20f9f9
https://github.com/jaydeluca
jaydelucahttps://github.com/jaydeluca
on Jun 11, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-4682905775
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
on Nov 3, 2026https://github.com/prometheus/client_java/issues/2075#issuecomment-6602544630
#2081https://github.com/prometheus/client_java/pull/2081
#2209https://github.com/prometheus/client_java/pull/2209
zeitlingerhttps://github.com/zeitlinger
completedhttps://github.com/prometheus/client_java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 3, 2026https://github.com/prometheus/client_java/issues/2075#event-35012056342
Sign up for freehttps://github.com/signup?return_to=https://github.com/prometheus/client_java/issues/2075
Sign in to commenthttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2075
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.