SPUG: Re: XML::XPath, LibXML Re: [was can't die() ...]
dleonard at dleonard.net
Wed Sep 19 15:27:50 CDT 2001
I expect that Matt will have a full SAX implementation using libxml2 in
the not so distant future. That guy has just been cranking out the code
lately. There was a bunch of talk about it on the perl-xml list recently
if I remember correctly.
I'm planning on converting my XPath based app to LibXML sometime in the
near future now that the XPath support has been added to LibXML. My
initial tests showed a minimum of 4x speed increase comparing the two.
I'm guessing that the average speed increase is actually even better than
<dleonard at dleonard.net>
<This word; I do not think it means what I think you mean. -Inigo Montoya>
On Mon, 17 Sep 2001, Colin Meyer wrote:
> Hi, Douglas,
> On Mon, Sep 17, 2001 at 03:35:05PM -0700, Douglas Leonard wrote:
> > I'd recommend moving towards XML::LibXML rather than something such as
> > XML::XPath if you are looking for reasonable speed of execution. I used
> > XPath on my last project and have been regretting it ever since because it
> > is so slow. The reiterative manner in which it builds relationships can
> > severely impact performance on even relatively small datasets.
> I'd agree that XML::XPath is very slow at what it does. I should have
> added that I typically have used it for one-time processing, and not for
> dynamic requests. If your processing is cached with a system like
> AxKit, that can also help out on dynamic request times.
> Hmm, upon examining the documentation of XML::LibXML, I see that it
> supports XPath notation through the findnodes() method. It even
> seems that Matt Seargent made the API quite similar to XML::XPath,
> so porting should be easy. I'll have to give it a whirl.
> The only downside to XML::LibXML that I can see is that it doesn't yet
> support SAX. It seems that the underlying c library does support SAX.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/
More information about the spug-list