[drupal-devel] [feature] Increase performance of node_page

jvandyk drupal-devel at drupal.org
Sun Aug 21 20:31:58 UTC 2005


Issue status update for 
http://drupal.org/node/29335
Post a follow up: 
http://drupal.org/project/comments/add/29335

 Project:      Drupal
 Version:      cvs
 Component:    node.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  jvandyk
 Reported by:  jvandyk
 Updated by:   jvandyk
 Status:       patch (ready to be committed)

Er, that's node_page(), not node_pager().




jvandyk



Previous comments:
------------------------------------------------------------------------

Sun, 21 Aug 2005 20:22:24 +0000 : jvandyk

Attachment: http://drupal.org/files/issues/node_speedyview.patch (1.8 KB)

The switch statement on $op in node_pager() currently has to go through
feed, add, revisions, rollback-revision, delete-revision and edit cases
before hitting the most common case, the view operation.


This patch simply moves the location of the view operation to second,
after feed, as we want view to be as fast as possible.


It also removes the blank line before the delete case for consistency.







More information about the drupal-devel mailing list