WordPress 1.5 speed-up

28. Februar 2005

Данило Шеган (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.

5 Kommentare

  1. Wow! Vielen Dank für diesen Patch! Die Wirkung ist unglaublich…

  2. Der Patch ist jetzt im CVS, d.h. in der nächsten WordPress-Version enthalten. :-)

    http://trac.wordpress.org/changeset/2394

  3. Achja, für die die’s gar nicht erwarten können, so gehts:

    As anyone who uses foreign language support in WordPress 1.5 may have noticed, switching to language to something other than english slows down WordPress. On my server, no request was finished in under 2 seconds.

    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?)

Auf anderen Seiten

Kommentare für diesen Beitrag sind derzeit deaktiviert.