pimcore/pimcore — pull request #13 by timglabisch (2012-02-24 00:05:33+00:00)
Title: performance issue on recursive templates

if you use the Zend_View_Helper_Action for dispatching recursive the Pimcore_Controller_Action_Helper_ViewRenderer will re-add all template paths. Everytime pimcore try to include all the files. For example we had ~300 recursive calls, pimcore needs around 90 Seconds (i think around 300.000 includes) to deliver the page.

this pull request should fix this issue.

to reproduce

an Action:

```php
public function fooAction() {
if(!$this->_getParam('inkr'))
return die();

$inkr = $this->_getParam('inkr');
$this->view->inkr = --$inkr;
}
```

and a view

```php
if($this->inkr)
echo $this->action('foo', 'default', null, array('inkr' => $this->inkr));
```