[
https://issues.apache.org/jira/browse/VELOCITY-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660628#action_12660628
]
Byron Foster commented on VELOCITY-664:
---------------------------------------
Fair enough, we could save the char array, and null out the token image. I
haven't tested the memory usage, but I can speculate that storing the text
portion of every template twice is significant. If both versions served a
purpose then I think it could be justified, but as it stands only one version
is used.
> Unnecessary double storing of template text
> -------------------------------------------
>
> Key: VELOCITY-664
> URL: https://issues.apache.org/jira/browse/VELOCITY-664
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Reporter: Byron Foster
>
> ASTText makes a copy of the token image and uses the copy to render. This
> means that ASTText keeps two copies of the text. In the majority of cases
> ASTText can use the token image.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]