Re: Slow readng tzdb.dat

2013-10-09 Thread Dr Heinz M. Kabutz
Tom Hawtin wrote: On 09/10/2013 19:00, Dr Heinz M. Kabutz wrote: That way, the resources are closed in the reverse order in which they are opened and an exception in the middle of the creation chain does not prevent the earlier resources from being closed. But there is only one resource. F

Re: Slow readng tzdb.dat

2013-10-09 Thread Tom Hawtin
On 09/10/2013 19:00, Dr Heinz M. Kabutz wrote: That way, the resources are closed in the reverse order in which they are opened and an exception in the middle of the creation chain does not prevent the earlier resources from being closed. But there is only one resource. File tzdb = new File

Re: Slow readng tzdb.dat

2013-10-09 Thread Dr Heinz M. Kabutz
May I suggest rather: try ( File file = new File(libDir, "tzdb.dat"); FileInputStream fis = new FileInputStream(file); BufferedInputStream bis = new BufferedInputStream(fis, 32000); DataInputStream dis = new DataInputStream(bis); ) { ... That way, the resources are closed in t

Slow readng tzdb.dat

2013-10-09 Thread Salter, Thomas A
I noticed recently that the JDK8 JVM was very slow starting on systems where the JRE is on a high-latency, remote file system. I tracked this down to the reading of tzdb.dat. In java/time/zone/TzdbZoneRulesProvider.java and sun/util/calendar/ZoneInfoFile.java the tzdb.dat file is read using a