There is a call to node_view() in node_comment_block_block_view(). Calling node_view() generates a call to hook_node_view(), which in some cases can cause performance issues.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dotsi’s picture

Assigned: dotsi » Unassigned
Status: Active » Needs review
FileSize
690 bytes

Provided a patch where node_view is replaced with node_show. Also some minor changes to the following code has been done.

dotsi’s picture

Actually, just realized that node_show calls node_view_multiple, which of course calls node_view for each node that is passed as a parameter. So this patch is sort of obsolete.

opdavies’s picture

Issue summary: View changes
Status: Needs review » Closed (works as designed)

So this patch is sort of obsolete.

In which case, I'll mark this as "closed".