bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

passing array to the view make it slow #1184

Closed olaulau closed 4 years ago

olaulau commented 4 years ago

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 :+1: $f3->set("objects", $objects);

any advice ?

KOTRET commented 4 years ago

please use google groups for questions, thanks

olaulau commented 4 years ago

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

KOTRET commented 4 years ago

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