title: Routers loading in express
body: <p>I'm interested in loading of my routers in nodejs express application. I saw the two approach:</p>
  
  <ol>
  <li><p>The first is loading an all routers in a boot place of application like as the following:</p>
  
  <pre><code>module.exports = function(app, db) {
        var controllers_path = __dirname + '/app/controllers';
        var controller_files = fs.readdirSync(controllers_path);
  
        controller_files.forEach(function(file){
           require(controllers_path+'/'+file)(app)
        })
     });
  };
  </code></pre></li>
  <li><p>The the second ones is loading of each router in a certain files if needed like as the following:</p>
  
  <pre><code>require('../controllers/main.js');
  require('../controllers/payload.js');
  </code></pre></li>
  </ol>
  
  <p>Which approach is better for performance?</p>