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.
There is still some performance optimization that should be done in hook_preprocess_page() particularly around the calls to menu_tree_build which are very expensive.
This issue was reported in the 1.x branch and it was recommended to use render caching.
See @ https://drupalwatchdog.com/volume-4/issue-1/automagic-speed-cache
Comment | File | Size | Author |
---|
Comments
Comment #1
sylus CreditAttribution: sylus commentedLooks like this will shave up to 200ms for the average page load and reduce the wall time and memory by 5%.
Comment #2
sylus CreditAttribution: sylus commentedRemoved extraneous call to drupal_render.
Comment #3
sylus CreditAttribution: sylus commentedComment #4
natew CreditAttribution: natew commentedThis seems reasonable to me. :)
Comment #5
sylus CreditAttribution: sylus commentedComment #6
sylus CreditAttribution: sylus commentedComment #7
sylus CreditAttribution: sylus commentedI added another render cache for the custom search form which calls drupal_get_form and is rather expensive.