This is an issue thread for the D7 version of same change found on http://drupal.org/node/1259812

In the homebox_build function there is a call to
$info[$block['module']] = module_invoke($block['module'], 'block', 'list');

If this page is being called frequently there is a significant overhead in collecting this information.
Especially if you have a lot of views.

If we cache this $info array it improves the performance.

Comments

Matt-H’s picture

This patch caches the block information required by a particular homebox page.

If you make changes to any blocks / views blocks you should clear cache to make sure
that the changes are reflected on homebox pages.

rv0’s picture

For some reason this code slowed down my page execution time from around ±1000ms to ±2000ms on avarage

anybody’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Please create a new Drupal 8+ (3.0.x) issue, referencing this one, if this is still relevant for Drupal 8+ (3.0.x).

As this issue was created for Drupal 7 which is close to EOL and won't receive any new features here anymore (unless someone implements them or sponsors development) I'm closing this issue for cleanup now.

If anyone works on this or has a solution, feel free to reopen! :)
Thank you.