While profiling a panel page I've came across the function ctools_entity_field_content_type_content_types.
It's triggered for each panel that's rendered and calls itself a nice amount of other functions e.g. t().
After taking a closer look I think there shouldn't be a disadvantage to add a static caching to the function.

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Committed, though I did remove $types = array() since the drupal_static is setting it to array already.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.