-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
[BUG] Extreme memory usage during rendering #823
Comments
I can confirm some performance issues as well. But they are not caused by |
I've run into what I think is another manifestation of the same problem... Let's say you have a helper method defined:
(With or without a
(The specifics here are made up.) This kind of helper leaks memory, and if you use it inside of an If the nested block doesn't render (using
The block still gets evaluated when
This works correctly and safely whether you use So I guess this is ultimately a syntactic nuance, but the impact of it on memory consumption could be subtle and hard to pin down, or in the wrong circumstances, it could grind everything to a halt. Since memory consumption is the only observable difference in the result, it would be better if this could be handled safely by default. |
The following slim partial used 38GB RAM in Mac and 8GB in linux.
Problem
Solution
I have used
=
instead of-
beforeif
.Conclusion
Its fixed now, but I expect
SLIM
to handle thisThe text was updated successfully, but these errors were encountered: