Hi jabapyth,
I´m using moduleinfo for the last months, and I can see a reduction of the performance (in my development environment ). Today I solved my problems disabling moduleinfo.
Calling to the same page:
Execution time with moduleinfo: 24925.12 ms
Execution time without moduleinfo: 3820.76 ms
Moduleinfo slow down the site in more that 6 times!!!
I discover that moduleinfo is executed on every page call, not only for the module list page. And then, the more modules you have, the more time consuming.
Hope this can help you.
Regards,
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | moduleinfo.patch | 583 bytes | mikeytown2 |
| #3 | moduleinfo.patch | 2.9 KB | mikeytown2 |
| #1 | moduleinfo.patch | 2.87 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedI made a quick patch for this issue, sorta a brute force way. Something is calling one of the sub functions thinking it is a hook, thats my guess as to why it gets executed on every page.
if ("admin/build/modules" == $_GET['q']){Comment #2
mikeytown2 commentedComment #3
mikeytown2 commentedhere's a better one.
Comment #4
mikeytown2 commentedK I think I fixed the issue without the ugly.
Comment #5
dkruglyak commentedHmmm... Why is this still not committed? This bug is lethal if you have hundreds of modules in your filesystem.
I found the same problem and developed the same patch independently, but looks like you have it there already. Please commit ASAP!
Comment #6
jean-bernard.addor commentedI have not tested the patch, but I confirm extreme performance degradation which can even make difficult to disable the module. I have more than 100 modules, and no other choice as to disable the ModuleInfo module.
Comment #7
jabapyth commentedSorry about that. Committed!
Comment #9
capellic@rsantiag --- thanks so much for figuring this out. All my sites were slow and I couldn't figure it out. I was suspicious of my hosting provider.