diff options
author | Lukas Eipert <leipert@gitlab.com> | 2019-01-22 00:14:21 +0100 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2019-01-22 00:14:21 +0100 |
commit | 6e4dac3589d2918f565cf4dc4771df875a6836e2 (patch) | |
tree | dc8e63bd1680acce666ff82103b49a1c7b2bfd9e /docker | |
parent | bd91bf1ea8cba1bc3aaaf10bf7bbc92ff64597d6 (diff) | |
download | gitlab-ce-6e4dac3589d2918f565cf4dc4771df875a6836e2.tar.gz |
Memoize timeago locales
Each localized function call of the timeago calls gettext 28! times.
Even though gettext is rather fast, this escalates pretty quickly. We
effectively memoize the locales, which results in a maximum of 28
function calls in total. For pages with normal data, less calls (< 10)
are much more realistic.
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions