[wp-trac] [WordPress Trac] #34114: Remove the requirement to call load_plugin_textdomain() or load_theme_textdomain()
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Apr 29 16:29:40 UTC 2016
    
    
  
#34114: Remove the requirement to call load_plugin_textdomain() or
load_theme_textdomain()
--------------------------------------+------------------
 Reporter:  johnbillion               |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.6
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------
Comment (by swissspidy):
 Just did some very basic profiling on a medium-sized site with about a
 dozen plugins. There were 4 scenarios:
 * No patch, en_US
 * No patch, de_DE
 * Patch applied, en_US
 * Patch applied, de_DE
 All plugins had de_DE translation files, so for the tests with the patch
 applied I removed all the `load_plugin_textdomain()` calls. What I noticed
 * When using de_DE (no patch applied), the site was 30ms slower in
 average, using about 10MB more memory.
 * When using en_US (patch applied), load time and memory consumption was
 identical, not real changes there
 * When using de_DE (patch applied), load time was identical as without the
 patch, memory consumption went down by 1MB.
 So, to sum this up, nothing really changes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34114#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list