Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Sep 2009 at 10:47 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchSame thing with drupal_load() - attached patch does both. This is in the critical path for any full Drupal bootstrap, so back to normal status
Comment #2
c960657 commentedThis doesn't sound right. Whether a file is loaded can change from false to true, but not the other way around.
The code looks good, though. It is only wording in the comment, I am objecting to.
Comment #3
catchMakes sense, re-rolled with the comment change.
Also attached before/after webgrind screenshots which show drupal_load() and drupal_get_filename() in the top ten most expensive functions (on a vanilla install with no content).
Comment #4
catchComment #5
pwolanin commentedRight - doesn't make sense for this to be a drupal_static and this might be one of the reasons why simpltest explodes if you do a call to drupal_static_reset() (i.e. reset everything) in setUp
Comment #7
catchHEAD broken.
Comment #8
Anonymous (not verified) commentedComment #9
catchTest bot is green, while I had a hand in this it's an obvious patch so marking RTBC.
Comment #10
pwolanin commentedAgree this is RTBC - simply a matter of logic.
Comment #11
casey commentedSame for module_implements(); functions (hook implementations) don't disappear during a request.
Comment #12
casey commentedNever mind, it's cache is reused in module_implements_write_cache().
Comment #13
dries commentedCommitted to CVS HEAD. Thanks!