Re: RFR: 8223490: Optimize search algorithm for determining default time zone

2019-09-13 Thread naoto . sato
Much better now. One nit: label "freedata" at line 236 should not be indented. As to the fastpath candidate zones, I was just curious. UTC/GMT is fine by me. Naoto On 9/13/19 1:32 AM, Seán Coffey wrote: Thanks for the review Naoto. The edits certainly did need some tidying up. Comments inli

Re: RFR: 8223490: Optimize search algorithm for determining default time zone

2019-09-13 Thread Seán Coffey
Thanks for the review Naoto. The edits certainly did need some tidying up. Comments inline. On 12/09/2019 17:42, naoto.s...@oracle.com wrote: Hi Seán, I like your approach to provide the fast path to determine the system time zone. One general question is, is UTC/GMT the right set of fast pa

Re: RFR: 8223490: Optimize search algorithm for determining default time zone

2019-09-12 Thread naoto . sato
Hi Seán, I like your approach to provide the fast path to determine the system time zone. One general question is, is UTC/GMT the right set of fast path candidates? Should we add some more common ones? Other comments to the code: TimeZone_md.c - Should fast path search come after "dir" vali

RFR: 8223490: Optimize search algorithm for determining default time zone

2019-09-11 Thread Seán Coffey
The current algorithm for determining the default timezone on (non-AIX) unix systems goes something like : 1. If TZ environment variable is defined, use it 2. else if /etc/timezone exists, use the value contained within it 3. else if /etc/localtime exists and is a symbolic link, use the name po