[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-git] [Dolibarr/dolibarr] ac92e2: [Qual] Optimize language file
From: |
Laurent Destailleur |
Subject: |
[Dolibarr-git] [Dolibarr/dolibarr] ac92e2: [Qual] Optimize language file loading |
Date: |
Fri, 03 Feb 2017 02:55:31 -0800 |
Branch: refs/heads/develop
Home: https://github.com/Dolibarr/dolibarr
Commit: ac92e23b59f8bb18949af15596c24f43e4e7a1ed
https://github.com/Dolibarr/dolibarr/commit/ac92e23b59f8bb18949af15596c24f43e4e7a1ed
Author: Raphaƫl Doursenaud <address@hidden>
Date: 2016-12-23 (Fri, 23 Dec 2016)
Changed paths:
M htdocs/core/class/translate.class.php
Log Message:
-----------
[Qual] Optimize language file loading
Using fscanf() and the proper format is about twice as fast as
using fgets() followed by explode() and trim().
This is a small optimization per se but since this code is
called often it yields about 33% rendering time improvement on
the homepage where about 50% of the time is spent on loading the
translation files.
Commit: 53661e1e4f4f0f4c74f4c44008cc8abfd8fa480e
https://github.com/Dolibarr/dolibarr/commit/53661e1e4f4f0f4c74f4c44008cc8abfd8fa480e
Author: Laurent Destailleur <address@hidden>
Date: 2017-02-03 (Fri, 03 Feb 2017)
Changed paths:
M htdocs/core/class/translate.class.php
Log Message:
-----------
Merge pull request #6211 from GPCsolutions/optimizetranslate
[Qual] Optimize language file loading
Compare:
https://github.com/Dolibarr/dolibarr/compare/9d3c77416309...53661e1e4f4f
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-git] [Dolibarr/dolibarr] ac92e2: [Qual] Optimize language file loading,
Laurent Destailleur <=