Re: SGML to HTML with jade?

Subject: Re: SGML to HTML with jade?
From: Mark Burton <markb@xxxxxxxxxx>
Date: Fri, 27 Jun 1997 10:19:51 +0100
jjc@xxxxxxxxxx said:
> Jade's implementation of node-lists is lazy: if you don't traverse a
> node-list it won't built it.  I think it's your definition of subtree
> that's causing the slowness.  Try using descendants instead of subtree
> in:

>    (build-index (select-elements (subtree (current-node))
> "INDEXTERM")))))))

Substituting descendants for subtree yields a huge difference in speed. Total 
time down to 20 seconds (from 80).

thanks James,

Mark

-- 
O(n) Mark Burton <markb@xxxxxxxxxx>                                     O(n)
O(n) Order N Ltd.                                                       O(n)
O(n) Chorlton Lane Farm, Chorlton Lane, Malpas, Cheshire, SY14 7ES, UK. O(n)
O(n) http://www.ordern.demon.co.uk/                                     O(n)



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread