Subject: Re: SGML to HTML with jade? From: "James Clark" <jjc@xxxxxxxxxx> Date: Fri, 27 Jun 1997 12:43:58 +0700 |
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"))))))) James > The next version still traverses the node list but returns an empty list of index > entries. The total time taken is about 60 seconds. The difference being the time > taken to build the list entries, sort and output the list. (not a huge > difference) > > (define (build-index nl) > (let loop ((result '()) > (nl nl)) > (if (node-list-empty? nl) > result > (loop '() (node-list-rest nl))))) > > This version doesn't bother to traverse the node list at all! It takes about > 10 seconds. (A huge difference) > > (define (build-index nl) > '()) > > Am I being incredibly thick or is Jade taking a long time to execute > node-list-empty? and/or node-list-rest ? DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: SGML to HTML with jade?, Mark Burton | Thread | Re: SGML to HTML with jade?, Mark Burton |
Re: SGML to HTML with jade?, Mark Burton | Date | Re: SGML to HTML with jade?, Mark Burton |
Month |