----- Original Message ----- From: "Geir Magnusson Jr." <[EMAIL PROTECTED]> To: "Velocity Developer's List" <[EMAIL PROTECTED]> Sent: 2002. m�rcius 13. 11:19 Subject: Re: Velocity Compiler
> > > I guess the question is - is there any point to doing this? :) It's not > clear to me what kind of real performance improvements can be realized by > compiling, because once the template is intepreted, it's bytecode, right? > I don't believe there is. Only the unfolded sequence of AST tree traversal is the potential target for compilation (since that's what is now interpreted) and I guess (altough I must admit that I didn't profile) that the traversal itself (not counting the calls to methods of tree nodes to render themselves, which are already compiled code) makes for a *very tiny* slice of rendering time. The time spent on invoking methods and properties on the data model as well as the char-to-byte conversions on the output are the likely hotspots, not the AST traversal. Attila. > > Geir > > -- > Geir Magnusson Jr. [EMAIL PROTECTED] > System and Software Consulting > "He who throws mud only loses ground." - Fat Albert > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
