]> source.dussan.org Git - nextcloud-server.git/commit
Cache results of available languages
authorLukas Reschke <lukas@owncloud.com>
Wed, 26 Nov 2014 23:01:55 +0000 (00:01 +0100)
committerLukas Reschke <lukas@owncloud.com>
Wed, 26 Nov 2014 23:01:55 +0000 (00:01 +0100)
commitb20d698ebd630a5d8030c42d3b88f6ef54224e36
treefb5e4c0aeec85b991d8db9394370e6ce9545946b
parentc749570a06fa4d24927fbd7aad13b36a8f1ff439
Cache results of available languages

This function is about 8 times calles for every single page call, when caching this variable I was able to gain a small performance improvement from 20,512 µs to 630 µs profiled with xhprof

Surely, this is no gigantic gain but if we would do that for every function out there...
lib/private/l10n.php