From 260665ddbeae4676969dc6180c62bec2061149fb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 23 Feb 2021 11:23:56 -0800 Subject: [PROPOSED] Improve localtime performance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix suggested by Arthur David Olson. * localtime.c (tzparse): Do not keep increasing yearlim; it’s not necessary and slows down tzparse. --- localtime.c | 1 - 1 file changed, 1 deletion(-) diff --git a/localtime.c b/localtime.c index b40e5e8..6627ff2 100644 --- a/localtime.c +++ b/localtime.c @@ -1194,7 +1194,6 @@ tzparse(const char *name, struct state *sp, bool lastditch) (&sp->ats[timecnt], janoffset + endtime)) { sp->types[timecnt++] = reversed; - yearlim = year + YEARSPERREPEAT + 1; } } if (increment_overflow_time -- 2.27.0