[wp-trac] [WordPress Trac] #37997: Increase in function calls to get_locale() because of _load_textdomain_just_in_time()

WordPress Trac noreply at wordpress.org
Fri Sep 9 14:38:00 UTC 2016


#37997: Increase in function calls to get_locale() because of
_load_textdomain_just_in_time()
---------------------------------------+--------------------------
 Reporter:  sharkomatic                |       Owner:
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  4.6.2
Component:  I18N                       |     Version:  4.6
 Severity:  normal                     |  Resolution:
 Keywords:  needs-testing needs-patch  |     Focuses:  performance
---------------------------------------+--------------------------

Comment (by sharkomatic):

 I'm attaching the l10n file with the modifications I just implemented on
 our site. I'm already noticing a considerable performance increase in New
 Relic. Server response time has gone down ~120 ms, throughput is higher. I
 made changes to unload_textdomain(), _load_textdomain_just_in_time(),
 get_translations_for_domain(), and added a new function called
 is_textdomain_unloaded().

 Feel free to offer any input on my changes.

 Thanks,
 Steph

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


More information about the wp-trac mailing list