-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BASE->recursive #1282
Comments
The issue here is that the complete HIVE is implicitly forwarded and escaped for rendering a template. You can specify a custom HIVE / array when rendering templates to minimize the amount of data that has to be escaped. If you want to have access to a whole escaped HIVE this will of course not solve the issue. For the record, the question is also asked here: https://stackoverflow.com/questions/78430283/fatfreeframework-bottleneck-in-function-base-recursive-to-encode-all-the-hive |
With xdebug.profile+QCacheGrind on medium complex Controler+Model I found a bottleneck on "function recursive($arg,$func,$stack=[]) {" in base.php:
... the bottleneck is on the render of the page to call recursiverly function encode($str) {...} on all the hive.
There is a solution to get this time back without set ESCAPE=false?
Why not caching the static part (DICT, config.ini ...) of the hive encoded and use this with the part coming from Controller?
The text was updated successfully, but these errors were encountered: