[wp-trac] [WordPress Trac] #17268: Use native gettext library when available

WordPress Trac noreply at wordpress.org
Sun Aug 13 18:35:32 UTC 2017


#17268: Use native gettext library when available
-------------------------------------------+-----------------------------
 Reporter:  linushoppe                     |       Owner:
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  Future Release
Component:  I18N                           |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  early has-patch needs-refresh  |     Focuses:  performance
-------------------------------------------+-----------------------------

Comment (by ottok):

 @Mte90 thanks for taking the time to test dynamic-mo-loader. Your result
 500 vs 800 milliseconds is in the same range as my measurements. See for
 example slide 44 at https://www.slideshare.net/ottokekalainen/improving-
 wordpress-performance-with-xdebug-and-php-profiling

 I don't have a benchmark done on the use of native gettext, but I am sure
 it is much faster than the custom implementation in PHP in WordPress.
 Smart caching is good, and having native gettext functions that are quick
 to start with is even better. Whatever the solution will be, WP core
 developers should not neglect this issue for another 6 years since even
 simple benchmarks prove there is a 30+ % speed improvement to achieve
 quite easily.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17268#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list