developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Changes between Initial Version and Version 1 of rfc/jlocale-storage


Ignore:
Timestamp:
Jan 11, 2012, 1:26:19 PM (9 years ago)
Author:
laurentj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc/jlocale-storage

    v1 v1  
     1= Efficient storage for jLocale =
     2
     3== why ==
     4
     5For the moment (Jelix 1.3) jLocale read properties file and store a PHP array in a cache file, to improve performance when retrieving a string. However, there can be calls to many properties files, so there are many includes. This is not still very good in term of performance and it can take many memory.
     6
     7== Proposition ==
     8
     9Instead of caching properties in a PHP file, use a database (NoSQL through jKvDB ?).
     10
     11jLocale:get should then:
     12
     13  * first, try if the given key does not exist in the database
     14  * if not, read the corresponding properties file, store all values in the database, and if the key does not exist: exception.
     15
     16An other solution, with better performances at runtime: after the configuration compilation, jLocale reads all properties file of all modules and store values in the database. jLocale::get is then very simple. For development environment, database should be reset at each action, to take care about changes in properties file.
     17
     18
     19
     20Corresponding ticket : [ticket:813]
     21
     22
     23== Comments ==