element_basic_defaults() gets called every time drupal_render() gets called, but always returns the same thing. Adding a static cuts off 15% from drupal_render() self time.

CommentFileSizeAuthor
patch.png383.68 KBcatch
head.png396.19 KBcatch
drupal_render.patch981 bytescatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

thanks for the screenshots of webgrind.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Performance

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