Данило Шеган (Danilo Šegan) just released a new version of php-gettext, which contains some optimizations I made.
As WordPress 1.5 is using this library to provide translated strings in foreign languages (e.g. German for this site), the pages are now generated noticeably faster than before (>6 seconds vs. 0.5 seconds for this homepage). I hope this improvement gets included into WordPress 1.5.1.
28. Februar 2005 18:45
Wow! Vielen Dank für diesen Patch! Die Wirkung ist unglaublich…
28. Februar 2005 18:48
Der Patch ist jetzt im CVS, d.h. in der nächsten WordPress-Version enthalten.
http://trac.wordpress.org/changeset/2394
2. März 2005 10:01
Achja, für die die’s gar nicht erwarten können, so gehts:
So I had a look at the „gettext.php“ and optimized it a little bit (pushes request time down to 0.1 secs again), and Danilo Segan (the author and maintainer of php-gettext) made a new release with these changes:
https://savannah.nongnu.org/projects/php-gettext/
1. Download the package
2. Replace gettext.php and streams.php (in wp-includes)
Additionally you can replace
$input = new FileReader($mofile)
in function load_textdomain (wp-l10n.php) with
$input = new CachedFileReader($mofile)
which also saves a few microseconds.
Would be nice if this would be integrated into WordPress 1.5.1 (any developers here?)