From: Joe B. <meb...@ya...> - 2011-03-09 18:53:42
|
Thanks for the quick responses! util:document-name() works speedily and solves my problem. document-uri() suffered the same slowness as base-uri() I can still send along the files I'm using if you'd like. I would need to sanitize them first though. ----- Original Message ---- From: Wolfgang Meier <wol...@ex...> To: Joe Breighner <meb...@ya...> Cc: exi...@li... Sent: Wed, March 9, 2011 1:24:57 PM Subject: Re: [Exist-open] base-uri() extremely slow > I have a collection of 20 or so (1MB each) XML files each with many 'item' > nodes. I'm trying to report some detail as well as the relative filename. This > code works but takes 3.5 minutes to complete! If I remove the base-uri() call, > execution times return to normal. Is this a "feature" or, as I assume, am I > going about this the wrong way? It really shouldn't take that long, though base-uri does some rather complex operations internally (I think this should be optimized). What happens if you use document-uri() or util:document-name() instead? Those functions should be pretty fast. Wolfgang |