I've installed XHProf and found out that "is_file" function is called 1,767 times ans takes about 0,8 sec to execute.
Here is the more detailed stats:
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | home.png | 97.01 KB | soul88 |
| #8 | groups.png | 102.96 KB | soul88 |
| #8 | group-inside.png | 126.94 KB | soul88 |
| #8 | group-inside-page6.png | 104.23 KB | soul88 |
| #8 | article.png | 97.13 KB | soul88 |
Comments
Comment #1
soul88https://drupal.org/node/1978592#comment-7810159 - some progress on the issue above.
Comment #2
soul88https://drupal.org/node/2077807 and another patch that helped me a lot. Now my pages for registered users open in between 0,6-2sec which is much better.
Comment #3
ezra-g commentedThanks so much, @Soul88! I'm following the token cache issue and look forward to results from the Test Bot.
Comment #4
soul88yay, token patch is finally green. Please review it if you can.
And what do you think about the core patch? Could we get it into the core?
//Yeah, I know it's not very sexy, but it works and speeds up the site.
P.S. Yay2, the core patch is green also ).
Comment #5
soul88Comment #6
pounard1200+ module_load_include() calls is really a huge figure. I'd tend to say you should redesign your home page to lower this figure, or patch the modules that call it too often.
Comment #7
soul88That's a standard Commons distribution. With almost no modifications.
Comment #8
soul88If that might help: here are my current XHProfs
the site: 40k nodes 400k comments
hardware: Intel Core i7 SandyBridge, 16GB RAM DDR3, 2*1TB hdds mid server (not the desktop HDDs)
Software: nginx + LAMP (FAMP? OS == FreeBSD), memcache, APC installed.
P.S. And it seems the GDO is much bigger, so we need to solve these problems anyway, if we want to move GDO to Commons.
Comment #9
lsolesen commentedReformatting links:
- #2077807: Add a static cache to the token plugin
- #1978592: Free Drupal 7's module_load_include() from is_file() calls