Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedthanks for the screenshots of webgrind.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.