Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ZoneIdPrinterParser can be optimized #350
Every time you parse a ZonedDateTime that contains a zone id the method ZoneRulesProvider.getAvailableZoneIds() is called in the ZoneIdPrinterParser.
This method can be very costly. Since there is already a cache to avoid to recreate the SubstringTree it should be possible
For example something like
Set regionIds = cachedRegionIds;
Set regionIds = ZoneRulesProvider.getAvailableZoneIds();