summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2019-01-22 00:14:21 +0100
committerLukas Eipert <leipert@gitlab.com>2019-01-22 00:14:21 +0100
commit6e4dac3589d2918f565cf4dc4771df875a6836e2 (patch)
treedc8e63bd1680acce666ff82103b49a1c7b2bfd9e /docker
parentbd91bf1ea8cba1bc3aaaf10bf7bbc92ff64597d6 (diff)
downloadgitlab-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