Re: Translation2: MySQL or XML?
| From: | Lorenzo Alberton | Date: | Wed, 15 Nov 2006 10:31:04 +0000 |
| Subject: | Re: Translation2: MySQL or XML? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25836@lists.php.net to get a copy of this message | ||
Jose Manuel Zea Ginerÿffffffffffe9s wrote:
have you tried the CacheLiteFunction decorator? If you use it, the number of db calls should drop dramatically. I haven't done any benchmark of the various containers, I guess the gettext one is the fastest, though. With caching enabled, the differences are probably minor.Hi all: I´m using Translation2 for i18n. During the web pagegeneration I call the get method several times, imagine maybe more than 200 times. Even I´m using Smarty, and the translation object is called from the templates. The actual container is MySQL, my question is if anybody thinks using the XML container is going to increase the performance.
And by the way, is there any tool made to pass all the information in the table ready for Translation2 to create the XML?not yet, unfortunately. It would be cool if someone could write a generic container-to-container converter... Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store