EventHandler.referenceInsert performance bottleneck
---------------------------------------------------

                 Key: VELOCITY-662
                 URL: https://issues.apache.org/jira/browse/VELOCITY-662
             Project: Velocity
          Issue Type: Improvement
          Components: Engine
            Reporter: Byron Foster


The times resulting from SimpleNode.literal, StrBuilder.append (the top two) 
and EventHandlerUtil.referenceInsert are due to the following line in 
ASTReference.render:

value = EventHandlerUtil.referenceInsert(rsvc, context, literal(), value);

Which accounts for nearly 25% of the time, Ouch! Not to mention the many number 
of StrBuilder objects created. (StrBuilder is called from within literal()) We 
are always taking the hit for this call even if there is no event handler 
installed. I havn't looked into it, but will probably just put a conditional 
around it.

-- 
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]

Reply via email to