On Monday 03 May 2010 3:20:36 am Dennis Sosnoski wrote:
> Whoops, meant to have this in my first response...
> 
> Andreas Veithen wrote:
> > Each of the two approaches (porting WSS4J to Axiom / building a new
> > optimized Axiom+DOM implementation) have their pros and cons and I
> > think there is enough room for the two. They could even be
> > complementary provided that the new Axiom+DOM implementation has a
> > lower memory footprint and better performance.
> 
> I can't really see much of a pro in porting WSS4J to Axiom. This would
> mean either forking the code, with the associated maintenance issues, or
> deliberately choosing to lower WSS4J's performance with other
> applications just so that Axis2 improves (and creating an Axiom
> dependency for everyone else using WSS4J).

Just to extend this a bit further (or make it more generic), change this to:

I can't really see much of a pro in porting <insert favorite XML processing 
library here> to Axiom. This would mean either forking the code, with the 
associated maintenance issues, or deliberately choosing to lower <insert 
favorite XML processing library here>'s performance with other applications 
just so that Axis2 improves (and creating an Axiom dependency for everyone 
else using <insert favorite XML processing library here>).

Seriously, I really don't think the problem is limited to WSS4J.  It really 
would apply to any library that does some sort of DOM based XML processing.   
Things like XSLT engines, XPath things, etc...   Should ALL of them be forked 
to have Axiom versions?   I personally think that's nuts.   Let the security 
folks do security things.  Let the XSLT folks do XSLT things. Etc...   Let the 
Axiom folks concentrate on Axiom things.  

Standard API's are good for a reason.   I would be good if the standard API's 
can be made to be fast.   That's my opinion. 

Dan



> 
> Implementing a DOM interface usable by WSS4J on top of a modified Axiom
> seems like a better choice, so that Axis2 can avoid unnecessary
> conversions and boost its performance without hurting other users of
> WSS4J. Or instead using a simpler version of build-on-demand than that
> implemented by Axiom, as discussed in the earlier reply.
> 
>   - Dennis

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to