Both 2.4 and 2.5 are affected by this issue. Naruse-san commit fix it by not calling tzset() more than once when we know the year doesn't have leap seconds.
63994 alone doesn't fix the issue. I just cloned ruby_2_4 with r64560 and run the same benchmark script and got the same result. Only r63857 fix the issue. Can you backport r63857 too?
Can you take another look on this backport? The commit that you backported doesn't fix the issue. I tested both ruby_2_4 and ruby_2_5 branches and the issue is still there.
Backport changed from 2.3: REQUIRED, 2.4: DONE, 2.5: DONE to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED
Hi rafaelfranca,
Thank you for your notification.
I overlooked your comment when I backported r63994.
r63857, r63858 (and r63864 for naming convention) could affect the performance of Time.now.
I reset Backport field to express your request.
We will discuss about the side effect of these changesets.