Drupal Association members fund grants that make connections all over the world.
While profiling D7, I noticed that _menu_check_access() is called many many times with paths that have no relevance to the current page. This function is in the top 5 time sucks right now.
To reproduce the problem:
- Ideally, start with clean HEAD install
- Create a standard user and login as that user
- Add this line to top of _menu_check_access():
print ($item['href']) . "\n";
- View homepage and note all the strange paths that get checked like taxonomy/autocomplete and user field/js_add_more system/ahah
Passed: 14475 passes, 0 fails, 0 exceptions View
Passed: 14478 passes, 0 fails, 0 exceptions View
Failed: 13657 passes, 0 fails, 2 exceptions View