Hi,

We saw the big performance boost we got by using ognl 2.7.1 with tapestry.
In our project we use ognl extensively (directly) and we want to improve the
performance by using ognl compilation to get the bytecode enhancement. But
we don’t understand something. 

We have to pass a context and root to the compile expression like

Node node = (Node) Ognl.compileExpression(context, root, "user.name"); 

And when we want to get the value

String userName = node.getAccessor().get(context, root);

Can someone clarify the following questions

1) Should we pass the same context to accessor method that was used for
compileExpression
2) Can we use a same ognlContext across multiple threads (is it thread safe)
3) initially when we use compileExpression, we don’t have the root object.
Is that fine?

Right now we use parseExpression which doesn’t need a ognlContext


Thanks in advance
Lakshmanan
-- 
View this message in context: 
http://www.nabble.com/OgnlContext-reuse...-tp16617645p16617645.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to