How to speed up Drupal 7 calls to _theme_process_registry?
I found there is already an issue related to this on drupal.org: Performance: optimize building theme registry by using get_defined_functions() instead of function_exists()