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.
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.
Comment | File | Size | Author |
---|---|---|---|
node_speedyview.patch | 1.8 KB | jvandyk | |
Comments
Comment #1
jvandyk CreditAttribution: jvandyk commentedEr, that's node_page(), not node_pager().
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commentedComment #4
(not verified) CreditAttribution: commentedComment #5
(not verified) CreditAttribution: commented