Skip to content
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

Open
fproperzi opened this issue May 4, 2024 · 1 comment
Open

BASE->recursive #1282

fproperzi opened this issue May 4, 2024 · 1 comment

Comments

@fproperzi
Copy link

With xdebug.profile+QCacheGrind on medium complex Controler+Model I found a bottleneck on "function recursive($arg,$func,$stack=[]) {" in base.php:
recursive
... 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?

@Rayne
Copy link
Contributor

Rayne commented May 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants