-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8278434: timeouts in test java/time/test/java/time/format/TestZoneTextPrinterParser.java #6790
Conversation
…tPrinterParser.java
👋 Welcome back naoto! A progress list of the required criteria for merging this PR into |
Webrevs
|
It’s nice to see you’ve got most of the performance back. Hope looping through Zone strings isn't really necessary. |
@naotoj This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks, Joe. IMHO, |
/integrate |
The proposed fix is to address the performance degradation caused by the fix to JDK-8275721. Some amount of the degradation cannot be avoided as the lookup now falls back up to the bundles at Locale.ROOT. However, by lowering the fallback priority of
regionFormatFallback
thanCOMPAT
's lookup, it can avoid the excess bundle lookups for regions.I also changed the test case
TestZoneTextPrinterParser.java
, which currently iterates over 3 nested loops, i.e., all-locales x all-timezones x 8, which is absolutely unnecessary. Made it to sample some locales.In addition, I added a microbenchmark for the DateFormatSymbols.getZoneStrings() method. Here is the result:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6790/head:pull/6790
$ git checkout pull/6790
Update a local copy of the PR:
$ git checkout pull/6790
$ git pull https://git.openjdk.java.net/jdk pull/6790/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6790
View PR using the GUI difftool:
$ git pr show -t 6790
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6790.diff