Does anyone know how gettext works under the hood?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm wondering if there is a way to save some processing time, and I
could totally be off my rocker, or violating the pre-mature
optimization rule...

But my assumption is when you ask gettext in PHP to load up a .po
file, it has to convert that into bytecode. That takes some overhead,
especially on a busy website. Could it be possible then to take the
APC approach and only process it once, keeping the output in shared
memory and only destroy the cache then the .po file is changed?

I haven't profiled the portion of my code using gettext yet but it
would be interesting to see how much % of each request it takes to
load the file. I also assume as the file gets larger it will take up
more resources as well...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux