Codeigniter HMVC effect on performance Codeigniter HMVC effect on performance codeigniter codeigniter

Codeigniter HMVC effect on performance


There are two main different features that HMVC adds to CodeIgniter which often confuses people:

  1. Modular MVC
  2. Hierarchal MVC

Modular MVC is the feature that most people want to use and is essentially just a way to have a cleaner folder structure.

HMVC is the practise of calling controllers from other controllers without the need for a new HTTP request. This is very rarely useful in my opinion, other than for things like calling a custom 404 page or "widgets".

MMVC adds barely anything to performance, calling a controller via HMVC is obviously almost twice as slow.

Either way neither will be noticeable. If your site is starting to crawl under high traffic then this is one of the last things you'll need to worry about.


With HMVC you do not have to code your modules anymore as implemented in codeigniter. If a client needs a feature that you've already done in your previous project, you just copy it and drop inside your current project.

As implemented in codeigniter, you can do your coding as you use to do and only implement the features that you think require HMVC.

As for performance it depends on how you design your application in general.