bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passing array to the view make it slow

olaulau opened this issue · comments

Hi ;
passing an array to the view make it render slower, even if the array is unused (no foreach to display data).
I'm using PHP style templates.

about 50ms to render a simple view with the 100 objects array passed,
echo $view->render('page.phtml');
1ms without this line.
the set method itself doesn't take time 👍
$f3->set("objects", $objects);

any advice ?

commented

please use google groups for questions, thanks

sorry, I though unexpected performance issue could be considered as a framework bug.

commented

then it'd be best to have something to reproduce :)