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

Reply via email to