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.
Looking at _taxonomy_depth(), I think this could easily be replaced by faster str_repeat().
As you probably know, php function lookup is slow. Furthermore, you perform it in a potentially large loop. And the php code in _taxonomy_depth() doesn't do anything str_repeat() can't do.
Comment | File | Size | Author |
---|---|---|---|
#4 | taxonomy_depth_forums.patch | 1.49 KB | webchick |
#2 | notaxdepth.patch | 1.88 KB | chx |
Comments
Comment #1
Egon Bianchet CreditAttribution: Egon Bianchet commentedComment #2
chx CreditAttribution: chx commentedYou are just right.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
webchickThis broke forums.
Comment #5
Jaza CreditAttribution: Jaza commentedConfirmed. I get a blank page at 'admin/content/forum'.
Tested Webchick's patch (above), and it fixes the problem.
Comment #6
drummDoesn't look pretty, but I guess it didn't before. Committed to HEAD.
Comment #7
(not verified) CreditAttribution: commented