[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Re: status of DVSL
From:       Leo Simons <leosimons () apache ! org>
Date:       2002-05-29 13:45:09
[Download RAW message or body]

> >> 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:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic