Fix OutOfMemoryError in reference component#186
Fix OutOfMemoryError in reference component#186reggie7 wants to merge 8 commits intodevelop-sling12from
Conversation
There was a problem hiding this comment.
This seems to fix the backend-part of the issue 🚀 .
@reggie7 please have a look at my question.
Im not sure though why the frontend even allows to reference a page to itself.
Is there an issue to fix this? that it shouldn't be allowed in the first place
core/src/main/java/com/themecleanflex/models/ReferenceModel.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/themecleanflex/models/ReferenceModel.java
Outdated
Show resolved
Hide resolved
@Felix-Puetz hmm, we can discuss that. What do you think @reusr1? |
|
@Felix-Puetz I think a ref to the page itself is ok |
reusr1
left a comment
There was a problem hiding this comment.
currently a no, need to figure out if this change has a performance implication/if there is no cleaner way to handle this
|
@reggie7 can we not solve this much more performant with the introduction of a threadlocal variable at that makes sure we dont output the same resource multiple times? |
Sure, take your time, it is indeed doing a recursive search to avoid recursive includes. |
@reggie7 I think you missed my last comment - I am suggesting to use a threadlocal variable to handle this instead |
…eclean-flex into issues/163-reference-OutOfMemoryError
As requested in PR review
As it should have been done
Fix for #163, but I had to use #184 fix for #164. The core fix is this commit.