velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <bali...@mail.lt>
Subject Re: Compiler was Re: [PATCH] optimization
Date Wed, 28 Aug 2002 16:58:27 GMT
I do not believe compiled tree can be more "fast", it can be more problems
with
compiled templates "InternalError" :).
Possible way to test/debug  is to use
Tree ->JAVA source ->javac->byte code
If it becomes "better" compile without javac and use compiled tree by javac
for debuging ( or forget this idea if no good results).
I believe it is better to "cache" some actions after traversing (like it
doe's with reflect stuff).
generate output and optimized actions at first time:
visit->
---visit->
-------visit->
-------visit->.....
..........................................
next time :
execute
execute
execute
execute
................................
It has meaning for some templates, but I am not sure at this time.
I will try to find some possible ways.

> On 8/27/02 4:15 PM, "Juozas Baliuka" <baliuka@mail.lt> wrote:
>
> > Hi,
> > I see some incomplete compiler.
> > Doe's somebody works on Compiler (  Tree -> byte code ) ?
> > Is it some ideas about compiling and debuging compiled templates ?
> >
> > Attached some minor optimization for parser.
>
> Thx.  I'll take a look at the diffs.
>
> Re the compiler, this is a subject of discussion from time to time.
>
> My belief is that compilation won't buy us much after a template is parsed
> into the AST - because rendering the template (running the AST) is just
> method calls - no parsing...
>
> --
> Geir Magnusson Jr.
> Research & Development, Adeptra Inc.
> geirm@adeptra.com
> +1-203-247-1713
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message