I just pushed a patch to the main repository that I hope made the map-
index a little easier to read (if you ignore the variable capture
stuff in the macros) and also makes it more efficient along the lines
of what Alex suggests. This passes all tests under BDB.
Please check it out!
Ian
On Nov 30, 2007, at 12:24 PM, Alex Mizrahi wrote:
??>> while in my opinion it would be enough to do this:
??>>
??>> (cursor-pfirst c) => 1
??>> (cursor-pnext c) => 2
??>> (cursor-pnext c) => nil
IE> What if there are more than two values = 2? This will only get
the
IE> first one.
so you say that cursor-pnext is same as cursor-pnext-nodup?
i thought that it just iterates sequence regardless whether there are
duplicates or not -- just what we want.
the BDB documentation says this:
----
Otherwise, the cursor is moved to the next key/data pair of the
database,
and that pair is returned. In the presence of duplicate key values,
the
value of the key may not change.
----
looks like it means it works fine with duplicate keys, but wording is
vague..
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel