WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Does velocity engine compile the script before evaluating

Re: Does velocity engine compile the script before evaluating

by Nathan Bubna :: Rate this Message:

| View in Thread

Templates are not compiled into any other language (bytecode or
otherwise).  They are interpreted into an AST which is then typically
cached.  Many years ago, experiments in compilation failed to produce
any worthwhile benefit over a cached AST, no one has attempted it
since for any java template engine i'm familiar with.

On Sat, Jun 23, 2012 at 12:12 AM, Dishara Wijewardana
<ddwijewardana@...> wrote:

> Hi ,
> In JSR 223,
> It has a concept of compiledScript which is a script compiled by the
> Compilable class. Then that compiled script is used to do engine.evaluate()
>
> Does velocity engine compile a script before evaluating or does it has at
> least such functionality as an optional one ?
> As far as I understand this compilation means probably a kind of ANTLR like
> compiler which compiles the script grammer.
>
>
> --
> Thanks
> /Dishara

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Does velocity engine compile the script before evaluating