How many times is require_once and include_once called with drupal_get_path() ?
As mentioned in #235459: add leading period+slash to views_include() and, for example, on http://reinholdweber.com/?p=3, using a full path, resp. absolutely defined relative path, avoids file lookups in all PHP include directories. So, why aren't we doing this by default?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal.get-path.patch | 925 bytes | sun |
| drupal.get-path.patch | 575 bytes | sun |
Comments
Comment #1
sunOTOH, turning this into a statically cached variable might be more Drupalish.
Comment #2
sundrupal_get_filename() is what actually needs to be changed here.
Whew... this seems to work in Drupal 5 already. :)
Comment #3
sunBenchmark on Drupal 6 with all core modules and a bunch of contrib modules enabled, and caching disabled:
Before this patch:
After this patch:
Comment #4
sunpwolanin has been so kind to point me to http://api.drupal.org/api/function/module_load_include/6 ...
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.