ddekany commented on PR #97:
URL: https://github.com/apache/freemarker/pull/97#issuecomment-1854700672

   I have realized that this can be done in a backward compatible enough way, 
if I support creating a `TemplateModelIterator` (which `#list`, `?join`, etc 
will prefer if available), then implement an `TemplateModelIterator` that just 
traverses the tree deeph first, left to right. As most users never set 
`incompatibleImprovements`, this is a significant advantage, as this way they 
will benefit from it as well.
   
   See 
https://github.com/apache/freemarker/commit/93a96377318e5775418de24ff60dfae25d54f93e
   
   If you agree, I would close your PR. While my solution doesn't speed up 
indexed access, I want to work on separately from this, as the current commit 
already fulfills the stated issue (slow iteration).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to