-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[LANG-1786] Cache short ids and log once #1482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[LANG-1786] Cache short ids and log once #1482
Conversation
FastDateFormat on Java 25
|
Hi everyone |
|
Looking at this, it introduces a synchronized method for the timezone. Does this have negative overall performance implications? |
FastDateFormat on Java 25 - Use a boolean system property when on Java 25 called "FastDateParser.ignoreTimeZoneShortIDs" if present - Remove unnecessary synchronized - Extract a constant
I removed the synchronized on the method. |
|
Okay , I want to contribute there but the only thing I atleast know is java dsa, am currently on linkedlist,have already learn Oops , so is there any guidance you can give me on this
…________________________________
From: Gary Gregory ***@***.***>
Sent: Thursday, November 6, 2025 8:46 PM
To: apache/commons-lang ***@***.***>
Cc: conellimo ***@***.***>; Comment ***@***.***>
Subject: Re: [apache/commons-lang] [LANG-1786] Cache short ids and log once (PR #1482)
[https://avatars.githubusercontent.com/u/1187639?s=20&v=4]garydgregory left a comment (apache/commons-lang#1482)<#1482 (comment)>
Looking at this, it introduces a synchronized method for the timezone. Does this have negative overall performance implications? The cache is a concurrent map, so maybe this can be avoided?
I removed the synchronized on the method.
—
Reply to this email directly, view it on GitHub<#1482 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BTNBOCFW2WDLOJ7SFBL6X5L33OCQ3AVCNFSM6AAAAACLIUEL36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOJYGU4TINJZGA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
[LANG-1786] A lot of warnings on the console when using FastDateFormat
with JDK25
Add and use
TimeZones.getTimeZone(String)as a way to avoid writing to the console on Java 25:Before you push a pull request, review this list:
mvn; that'smvnon the command line by itself.