Translate functions when no locale are expensive no-ops
|Reported by:||johanee||Owned by:||westi|
Description (last modified by westi)
When there is no locale loaded WordPress creates a new empty Translations object on every call to any translation function (__(), ...) which is then used to do the fruitless no-op lookup.
Reverting to the 2.7 style (of testing $l10n[$domain] directly in translate() and friends) makes page load of new install of 2.9 trunk front page 17% faster!!
Change History (15)
- Description modified (diff)
- Owner set to westi
- Status changed from new to accepted