-
Notifications
You must be signed in to change notification settings - Fork 714
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
Performance drop when using modifiers like date_format #280
Comments
This is now fixed in the master branch |
Hi. Now we are receiving errors after this fix:
Maybe instead of require removal you should add this code:
Thanks. |
Sorry, it should have been like that. it's now fixed |
Smarty 3.1.30
File: plugins\modifier.date_format.php
Noticed while doing some profiling: for 300 hits to date_format (say, a table with 300 calls to date_format), the code for date_format is doing 300 "require_once", which turns into >100 ms. (ranking top position on my profiling case).
Simple fix to go ~2 ms for 300 date_format calls:
This also happens on some other modifiers.
The text was updated successfully, but these errors were encountered: