[wp-trac] [WordPress Trac] #43096: Reduce redundant calls to translate()

WordPress Trac noreply at wordpress.org
Mon Jul 1 07:43:52 UTC 2024


#43096: Reduce redundant calls to translate()
-------------------------------------------+------------------------------
 Reporter:  superdav42                     |       Owner:  (none)
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  I18N                           |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch needs-refresh close  |     Focuses:  performance
-------------------------------------------+------------------------------

Comment (by swissspidy):

 That's a good point. It's certainly less of a bottleneck right now,
 although it's always great being able to reduce unnecessary function
 calls. However, the above concerns with the approach are still valid. For
 example, static variables would break locale switching and tickets such as
 #38643.

 A new performance analysis here would be helpful to see whether there is
 still room for optimization or not.

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


More information about the wp-trac mailing list