]> git.koha-community.org Git - koha.git/commit
Bug 15395: Do not process template files that do not use i18n.inc
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 25 Oct 2018 13:04:46 +0000 (15:04 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 8 Nov 2018 15:55:52 +0000 (15:55 +0000)
commitee0c8f319a5cfa9a23d6ac2be0cd2d6ebf70beed
tree3489b830ea50faa8809203ddead40cbdba769e83
parentd1c6e70b446ff0f099f42e29352c5b718b36b0b1
Bug 15395: Do not process template files that do not use i18n.inc

It should make the string extraction process a little faster

For the record, I timed some parts of the process to see why it was so
slow, and without surprises the most time-consuming task is the Perl
code analysis by PPI with an average time of 50ms by "template block" on
my machine.
Multiply that by the number of template blocks (approximatively 900),
that gives us 45 seconds just for this task.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/translator/LangInstaller.pm