3

Would disabling core modules which I don't need, like Color, speed up my site? If so, why?

8

In theory, the answer is yes, but in practice, I doubt it. It depends entirely on on the module though.

If you have badly written module that implements hook_boot, so it executes on even cached page requests, and it performs lots of logic in there, and you have no use for it, then sure, you would gain speed from disabling it.

Most likely though, the average module is going to be implementing logic that is only actually executed when it is used, so if you don't use it it's not going to cost much.

If it's a big module, you could see a small dent in memory usage, as all enabled modules are loaded into memory, and as pointed out by Mołot, a modules variables and menu router entries will consume some resources, but again, I think in practice, it's not going to make a big difference.

That said, if you don't use the module, why keep it enabled? It by definition doesn't provide you with any benefit if it's not used, and at least it's going to clean up the administrative pages.

  • It's not worth an answer on it's own: Uninstalling modules will reduce size of variables table, and it is read from DB and unserialized one by one, so disabling and uninstalling modules should speed up site by reducing database, cpu and memory usage. Another matter are routing tables - less addresses = faster resolution. – Mołot Jun 24 '13 at 9:08
  • 1
    Both are completely true, but I think you would need a LOT of variables and routing entries to find a measurable difference. This is a sort of micro-optimization question. There are a lot of other things one could focus on that will give large performance improvements. – Letharion Jun 24 '13 at 9:31
  • 1
    Like using a Boost, I know. I just thought if he wants to know benefits of this one action, let's give him as full answer as possible. – Mołot Jun 24 '13 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.