-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Cris,

On 9/15/20 13:18, Berneburg, Cris J. - US wrote:
> CS> IMO, the JSP effort was a stepping-stone on a path to better
> CS> technologies like Velocity, FreeMarker, and others. If I were
> CS> king, JSP would just go away. Just my POV of course [...]
>
> cjb> what do you like better about Velocity, FreeMarker, etc. cjb>
> more than JSP?
>
> CS> I started using Velocity years ago [...] It definitely has its
> CS> warts but it's relatively actively maintained, and anything I
> CS> need I can get in and do myself, submit patches, etc. CS> CS>
> Advantages over JSP (IMHO): CS> CS> - Can't execute direct Java
> code, ever CS> - Non-verbose syntax CS> - No limit on template
> length [...] CS> - Easy to install POJO "tools" which just expose
> Java objects CS>   to the runtime so you can $tool.doSomething()
> [...] CS> - Can load templates from anywhere (disk, DB, URL, etc.)
>
> Good to know!  I also see that it is an ASF project.
>
> Is Velocity interpreted or compiled like JSP?  I'm thinking of
> performance impacts, like during loops.
>
> Answering my own question, the Velocity FAQ says, "Velocity
> doesn't compile your templates. They are parsed into an AST
> (abstract syntax tree) and that is what gets cached."
Right. It's not really interpreted OR compiled. But it's not re-parsed
on every request unless you configure it to do that. I've never had
any performance complaints myself.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl9ip94ACgkQHPApP6U8
pFhooxAAifqd19yhLdxBAdDJY1ttX0CWB3/F3PUZ0qf6NoHU/kN7tLi5oejQpJ2a
YTeml+vO/jI/c6sF5A/6rPdKyx6rjiUercUFP6efMJH6z4zVitgGfshWiAwWiBur
SkDGtWsFUnco1fFOcSB2mD42amOl6JVEmpUyjMdlBw3wxjUY+fofKLD5/H1u2gb0
IqBmpZr7gPnhOK03Iti2zdaUCAf+iAJ+rgjnuo/iXpDRIa2s3JFxdbY0192id5sv
bMPzO4hwU7aaR7qARXY+LBMFrJyuh2ICfIaz9s5uR+S20fSipcGkVSDl9OqATEls
pHM/ff8d7fLuozj6JgVR1jDfQLOHEYwMktgJ9I1Lst4C+FaHsWoShm0mailYxHf6
FvF/XCaCxQ1mgwslnbfXBV65tU6okOMnkmZDCG8otxT/KMyhTgtSyfj80ft2x4Tq
0IvPWm8ztwj3Tr/P7Vg2T4RX46ESHQ20i0CtcGtMaaWRlVdTcBRYSR/JRsa+Hrdq
W0SJ2PTO7stjuPDYTSog/wrprwS2QwKrpkj7RVgVXsOUShHTV9aswIWZjW+jiJyA
3DlsmBMeXhLdrlMTw8i1/fvHa+TtPjHoFvSH6sAHs3xX+QbLV3+bJ6/Z3+BU0V3N
H76kobuPTXwEZXJ4y5TgY4Q8Jj/NQDwbnL+Si1Ut+gCpNlaD+B8=
=O8Ce
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to