logo       

Re: fn:deep-equal implementation: msg#00222

text.xml.exist

Subject: Re: fn:deep-equal implementation

Hi Piotr,

> I've implemented fn:deep-equal, as I need it for my current project. The
> implementation, some unit tests, and a patch to add the function to the
> table of built-in ones are attached. It seems to work, but I didn't try
> it with very complex queries (I'm especially worried about
> getDependencies() and inPredicate, since I have no idea how they work),
> and I didn't try to optimize it in any way. Any feedback would be
> appreciated. Thanks!

Thanks a lot. I added the function to the CVS and the snapshot release.

getDependency() should only return the default setting:

Dependency.CONTEXT_SET | Dependency.CONTEXT_ITEM;

This indicates that the function should be called once for every item in the
context. eXist has some optimized functions (e.g. fn:not) that are able to
process the entire context in a batch. However, for most functions this
doesn't apply. The same is true for inPredicate, which is only relevant for
optimized functions.

Wolfgang


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise