[wp-trac] [WordPress Trac] #26638: [Patch] Performance Increase in l10n (9-12%)
WordPress Trac
noreply at wordpress.org
Mon Dec 16 09:54:49 UTC 2013
#26638: [Patch] Performance Increase in l10n (9-12%)
-------------------------+------------------------------
Reporter: dshafik | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by nacin):
Thanks for the patch! NOOP_Translations is used when a domain is "loaded"
but no translations actually exist for that domain. It is a dead-simple
class, essentially functioning as a no-op (as the name says). What would
need to happen is get_translations_for_domain() would still need to be
called, as this would break translation usage as written. While we could
avoid calling NOOP_Translations, we'd still need to check whether the
object returned is NOOP_Translations before avoiding the function call.
I've looked at trying to squeeze performance out of this before — is it
really that much overhead? How did you calculate these numbers?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26638#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list