Looking at the code of Zend_View_Abstract
it should be fine do have multiple calls. render()
essentially does:
- Look up the script. One operation for each scriptpatch you have.
- Run the file, encapsuled by
ob_start()
and ob_get_clean()
. Should not cause any performance issues.
- Run each filter on the output.
Unless you don't have hundreds of scriptpaths' or filteres added, performance should be ok. Note however that especially nested render()
calls require more memory (due to possibly stacked output-buffers).
But of course you want to cache as much as possible anyway - making most of the render()
-calls run only once ;).