[wp-trac] [WordPress Trac] #58321: `_load_textdomain_just_in_time()` firing too often for en_US sites

WordPress Trac noreply at wordpress.org
Tue May 30 18:28:44 UTC 2023


#58321: `_load_textdomain_just_in_time()` firing too often for en_US sites
--------------------------------------+--------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.3
Component:  I18N                      |     Version:  6.2
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by flixos90):

 For reference, in my test runs with TT3 and en_US locale, `WP_DEBUG` and
 other debugging constants all set to `false` (`npm run research --
 benchmark-server-timing -u http://localhost:8889 -n 100 -p`), I got:
 * 157.24ms with this change, 157.89ms without (~1% faster)
 * 157.06ms with this change, 158.02ms without (~1.6% faster)
 * 159.08ms with this change, 161.14ms without (~2.3% faster)

 While the difference oveerall is small enough to potentially be due to
 variance between test runs, I consistently see better results with the
 commit applied. It's a relatively small win, but I think it's safe to say
 it is ''a'' win. 👍

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


More information about the wp-trac mailing list