diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-25 00:36:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-25 00:36:23 +0000 |
commit | 4c875b6e667d205fef5533670460e2043c9aaa6a (patch) | |
tree | adef9ae4b9e70a966732467f8d3a2ce57d7dddbe /gc.c | |
parent | f8dbff557af75c0347f271cf5a1a557eea9f9eed (diff) | |
download | ruby-4c875b6e667d205fef5533670460e2043c9aaa6a.tar.gz |
time.c: benchmark recovery
* time.c (time_localtime): check if `vtm.zone` is a simple zone
name string before trying to call the conversion method. since
r64952, `Time.getlocal` on UTC time has lost the performance
about 45%, due to this call. the performance is about 90% of
r64951 by avoiding it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions