At the moment it's probably slower than the if statement + function_exists(), even if it's not, a function is not going to disappear and change the output of this under any circumstances.

This can be called over 1,000 times during OpenID logins, drupal_static() there takes about 20ms (in webgrind).

CommentFileSizeAuthor
#1 1068184.patch621 bytesbfroehle

Comments

bfroehle’s picture

Status: Active » Needs review
StatusFileSize
new621 bytes
catch’s picture

Status: Needs review » Reviewed & tested by the community

Thanks bfroehle!

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Performance

Automatically closed -- issue fixed for 2 weeks with no activity.