You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Leo Simons <le...@apache.org> on 2002/05/27 23:15:49 UTC

status of DVSL

all,

In our project, I'm using VelocityServlet for the generation of our
website, and VelocityEngine for generation of other stuff, mainly
e-mails but there's SOAP-related stuff as well.

VelocityServlet runs within a modified Jo! which runs inside a forked
Avalon Phoenix. VelocityEngine runs as a block within an Avalon .sar
application.

Templates, xml documents and other data are all retrieved from a
database (firebird), cached, stored in JNDI (another avalon .sar takes
care of that), and accessed by both engine and servlet to create our
output.

Works remarkably well (hurray for all!). What we currently do is push a
DOM node into the context and get stuff from there (ie anakia-style).
The DOM generation is currently our bottleneck (documents go from 5k to
5mb); it is also very annoying to use within templates for complex
documents.

One alternative would be to use commons digester or a similar package we
have here in-house. The other alternative is to move to DVSL.

This is just some background because you might enjoy hearing it, now for
2 main questions:

- are there perfomance figures for DVSL? (I assume it's faster than
xalan; anyone know how it compares to anakia?)

- how stable is DVSL? (Is a release planned? If so, when?)

thanks guys!

- Leo Simons



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by Leo Simons <le...@apache.org>.
> >> Let us know if you find out anything speed-wise...
> > 
> > Will do. Preliminary info: for the larger documents, it seems quite a
> > bit faster than xalan, while quite a bit slower than anakia.
> 
> That's interesting.  What kind of access are you doing?

Basically, this is caused by having a suboptimal DTD for our documents.
FA, the same document can contain multiple translations of the same
thing.

We only have to determine the locale to use and then select the
appropriate bits.

>  I certainly see how
> anakia can be so much faster when accessing things directly, but I would
> have thought something with significant document coverage would be
> competitive.

yep. Think it is. If you have to do complete transformations of
documents, xalan is about as fast as velocity, I know from experience.

> Can I get a copy of the document, the anakia vsl, and the dvsl?  I am
> interested in seeing what could be done...

sorry, no :(

company policy...

> > However,
> > using the commons digester is even quicker, and using our in house
> > delegating sax parser beats 'em all (for the really big docs, it halves
> > the response time for many of our common requests compared to DVSL).
> 
> That's not surprising.
> 
> There is the trade between expressivity and speed.  I wonder if we can
> bridge that somehow.

my guess it is not worth the effort. Our use case is pretty specific, as
we have non-proxied dynamic generation of large documents using a
suboptimal DTD...don't think you should try and accommodate for that.

Sane people would either change the DTD or add a proxy...

If you would want to optimise, you'd probably have to find a way to
configure DVSL to ignore parts of the xml doc (ie, like you do with
SAX). Maybe there's some optimisation possible in general in this area?
(I'm totally unfamiliar with DVSL internals).

cheers,

- Leo


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by "Geir Magnusson Jr." <ge...@earthlink.net>.
On 5/28/02 5:59 PM, "Leo Simons" <le...@apache.org> wrote:

>> Let us know if you find out anything speed-wise...
> 
> Will do. Preliminary info: for the larger documents, it seems quite a
> bit faster than xalan, while quite a bit slower than anakia.

That's interesting.  What kind of access are you doing?  I certainly see how
anakia can be so much faster when accessing things directly, but I would
have thought something with significant document coverage would be
competitive.

Can I get a copy of the document, the anakia vsl, and the dvsl?  I am
interested in seeing what could be done...

> However,
> using the commons digester is even quicker, and using our in house
> delegating sax parser beats 'em all (for the really big docs, it halves
> the response time for many of our common requests compared to DVSL).

That's not surprising.

There is the trade between expressivity and speed.  I wonder if we can
bridge that somehow.  I assume that parsing was turned off for DVSL...
 
> This is for our specific app, of course. It is as expected though.
> 
> For the smaller docs (say 'till around 300k), I can't easily measure as
> the bottleneck lies elsewhere.
> 
> Based on all this, I'd recommend using xalan if you know XSLT, DVSL if
> you don't, a custom optimised sax parser if your a sax expert and DVSL
> is your bottleneck, or digester if you're not and you still need that
> little bit of extra speed.
> 
> I'm using the third option for now (less to learn for me; I'm in a bit
> of hurry); DVSL remains an option.

Thanks for the update.  It's good to know where things stand.

geir
 

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by Leo Simons <le...@apache.org>.
> > Considering VelocityServlet is a servlet, "Jo!" must be a servlet
> > engine! It's really cool, and it is embeddable.
> 
> I thought it was a typo...  Is it pronounced with a clicking sound, like
> Jo<click>, or do you just have to shout? :)

no idea...

> >>> - are there perfomance figures for DVSL? (I assume it's faster than
> >>> xalan; anyone know how it compares to anakia?)
<snip>
> 
> Let us know if you find out anything speed-wise...

Will do. Preliminary info: for the larger documents, it seems quite a
bit faster than xalan, while quite a bit slower than anakia. However,
using the commons digester is even quicker, and using our in house
delegating sax parser beats 'em all (for the really big docs, it halves
the response time for many of our common requests compared to DVSL).

This is for our specific app, of course. It is as expected though.

For the smaller docs (say 'till around 300k), I can't easily measure as
the bottleneck lies elsewhere.

Based on all this, I'd recommend using xalan if you know XSLT, DVSL if
you don't, a custom optimised sax parser if your a sax expert and DVSL
is your bottleneck, or digester if you're not and you still need that
little bit of extra speed.

I'm using the third option for now (less to learn for me; I'm in a bit
of hurry); DVSL remains an option.

cheers,

- Leo

PS: sorry I can't give you any concrete data; it'd give away too much
about our project, or it'd be too much work.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/28/02 2:56 AM, "Leo Simons" <le...@apache.org> wrote:

>>> all,
>>> 
>>> In our project, I'm using VelocityServlet for the generation of our
>>> website, and VelocityEngine for generation of other stuff, mainly
>>> e-mails but there's SOAP-related stuff as well.
>>> 
>>> VelocityServlet runs within a modified Jo! which runs inside a forked
>>> Avalon Phoenix. VelocityEngine runs as a block within an Avalon .sar
>>> application.
>> 
>> What is a "Jo!"?
> 
> Considering VelocityServlet is a servlet, "Jo!" must be a servlet
> engine! It's really cool, and it is embeddable.

I thought it was a typo...  Is it pronounced with a clicking sound, like
Jo<click>, or do you just have to shout? :)

> 
>>> - are there perfomance figures for DVSL? (I assume it's faster than
>>> xalan; anyone know how it compares to anakia?)
>> 
> <snip>
>> I would recommend trying it and comparing.
> <snip>
> 
> figures =)
> 

Well, your docs range from bytes to megabytes, and if you were accessing one
single element deep in the tree, then anakia, with a direct xpath access to
the element would be quicker than a generic dvsl element match, which would
get there eventually.  See why YMMV?

>>> - how stable is DVSL? (Is a release planned? If so, when?)
>> 
>> Seems pretty stable.  If a release would make you happy, we could certainly
>> work towards that...
> 
> it is not so much me as the company policy, "don't work with alpha/beta
> software"...the argument that most jakarta alphas are more stable than
> many commercial releases always loses from something called a "policy".
> 
> So yeah, that'd be nice =)
> 
> But don't forget, a release also means having to support it, be
> backwards compatible yada yada...

Of course we would...  Basically, with people using it now, we have to
support what we have for the most part...

> 
> thanks for the info,
> 

Let us know if you find out anything speed-wise...

-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by Leo Simons <le...@apache.org>.
> > all,
> > 
> > In our project, I'm using VelocityServlet for the generation of our
> > website, and VelocityEngine for generation of other stuff, mainly
> > e-mails but there's SOAP-related stuff as well.
> > 
> > VelocityServlet runs within a modified Jo! which runs inside a forked
> > Avalon Phoenix. VelocityEngine runs as a block within an Avalon .sar
> > application.
> 
> What is a "Jo!"?

Considering VelocityServlet is a servlet, "Jo!" must be a servlet
engine! It's really cool, and it is embeddable.

> > - are there perfomance figures for DVSL? (I assume it's faster than
> > xalan; anyone know how it compares to anakia?)
> 
<snip>
> I would recommend trying it and comparing.
<snip>

figures =)

> > - how stable is DVSL? (Is a release planned? If so, when?)
> 
> Seems pretty stable.  If a release would make you happy, we could certainly
> work towards that...

it is not so much me as the company policy, "don't work with alpha/beta
software"...the argument that most jakarta alphas are more stable than
many commercial releases always loses from something called a "policy".

So yeah, that'd be nice =)

But don't forget, a release also means having to support it, be
backwards compatible yada yada...

thanks for the info,

- Leo



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: status of DVSL

Posted by Tim Colson <tc...@cisco.com>.
Leo wrote:
> > VelocityServlet runs within a modified Jo! which runs 
> inside a forked Avalon Phoenix. VelocityEngine runs as a block within
an 
> Avalon .sar application.
> 
Geir asked:
> What is a "Jo!"?
http://www.tagtraum.com/ - "jo! is a pure, free Java web server that
implements the Servlet API 2.2, JSP 1.1 and HTTP/1.1." 

It's a sporty lil' sprite o' servlet goodness - I like it. ;-)

Funny though, a "forked Avalon Phoenix" sounds dirty. <grin>


> The DOM generation is currently our bottleneck 
> > (documents go from 5k to 5mb); 

Egad, was that a wild exageration or measurable pain? 

Would be handy ammo the next time somebody trys to convince me that
converting java objects into an XML doc to then convert back to a DOM
tree to process with XSLT to create HTML is better than dropping the
objects into a Velocity context and pressing 'merge'. Ah well, some
folks still think JSP's are cool too. 

Tim





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: status of DVSL

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/27/02 5:15 PM, "Leo Simons" <le...@apache.org> wrote:

> all,
> 
> In our project, I'm using VelocityServlet for the generation of our
> website, and VelocityEngine for generation of other stuff, mainly
> e-mails but there's SOAP-related stuff as well.
> 
> VelocityServlet runs within a modified Jo! which runs inside a forked
> Avalon Phoenix. VelocityEngine runs as a block within an Avalon .sar
> application.

What is a "Jo!"?

> 
> Templates, xml documents and other data are all retrieved from a
> database (firebird), cached, stored in JNDI (another avalon .sar takes
> care of that), and accessed by both engine and servlet to create our
> output.
> 
> Works remarkably well (hurray for all!). What we currently do is push a
> DOM node into the context and get stuff from there (ie anakia-style).
> The DOM generation is currently our bottleneck (documents go from 5k to
> 5mb); it is also very annoying to use within templates for complex
> documents.
> 
> One alternative would be to use commons digester or a similar package we
> have here in-house. The other alternative is to move to DVSL.
> 
> This is just some background because you might enjoy hearing it, now for
> 2 main questions:
> 
> - are there perfomance figures for DVSL? (I assume it's faster than
> xalan; anyone know how it compares to anakia?)

When I first did it, I did some tests, and it was faster.  However, it's
entirely possible that it could be slower : it depends upon what you are
doing with the document.  I know that provides no real answer, but it's the
truth.

I would recommend trying it and comparing.  Once comparison is document
generation time : there is an example in the DVSL package where you can
render all the vel docs (you need to copy the vel docs in there).
 
> - how stable is DVSL? (Is a release planned? If so, when?)

Seems pretty stable.  If a release would make you happy, we could certainly
work towards that...

> 
> thanks guys!
> 
> - Leo Simons
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>