title: I use Slim Framework. Why server response time is very big?
body: <p>I use this code, and server response in ~500-700ms. If write 'return;' after create Slim object as $app, response time is ~200-250ms. Why this framework work very slow? Can i do it fast?</p>
  
  <pre><code>    require 'Slim/Slim.php';
      \Slim\Slim::registerAutoloader();   
      $app = new \Slim\Slim(array(
          'debug' =&gt; true,
          'templates.path' =&gt; './templates'       
          ));    
      $headerType = $app-&gt;request-&gt;headers-&gt;get('Accept');
      switch($headerType){        
          case "text/html":
              $app-&gt;response-&gt;headers-&gt;set("Content-Type",'application/xml');
              echo  $headerType;
              break;
          case "application/xml":
              echo  $headerType;
              $app-&gt;response-&gt;headers-&gt;set("Content-Type",'application/xml');
              break;
            case 'application/json':
            default:
              $app-&gt;response-&gt;headers-&gt;set("Content-Type",'application/json; charset=utf-8');
      }
  
      $app-&gt;get('/modules/:id', function ($id) {  
          echo Modules::getJsonModule($id);       
      });
  
      $app-&gt;get('/countries/:id', function ($id) {    
          echo CountriesControls::getJsonCountry($id);        
  
      });
  
      $app-&gt;get('/modules/:id/childs', function ($id) {
          echo Modules::getJsonChilds($id);       
      });
  
      $app-&gt;get('/', function () {                    
      });
  
      $app-&gt;get('/modules/:id/summary', function ($id) {            
      });
  
      $app-&gt;run();    
  </code></pre>