[wp-trac] [WordPress Trac] #43902: Small refactoring to prevent multiple chr() calls in MO class
WordPress Trac
noreply at wordpress.org
Sat May 5 22:01:52 UTC 2018
#43902: Small refactoring to prevent multiple chr() calls in MO class
-------------------------+------------------------------
Reporter: likemusic | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: performance
-------------------------+------------------------------
Comment (by likemusic):
Hi @ayeshrajans !
Thanx for review. According to your test for old version php (before 7.0)
using constant decrease time almost for 50%. It's good indicator and imho
shoud be merged to develop branch because still many WP sites running on
old php versions.
I made this fix because loading translations take most time of request
handling after installing some extensions.
I looked for MO loader but can't find any other obvious way to increase
translation loading performance.
Seems that it's requires to use some cache to not parse all mo files for
every requests (that makes every 30 sec when admin page is opened in
browser).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43902#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list