Andreas Eder wrote:
> Hi all,
>
> once again after a cvs update I get a lot of errors in the
> testsuite.
> Could we all please test a bit more thorougly before a commit?
>
> And besides I don't think it was a good thing to reintroduce memq
> instead of the proper CL idiom of using member with :key '#eq.
> (The times of maclisp are gone).
> (and for the performance buffs: it costs a funcation call).
For some lisps, but not all. For at least cmucl and sbcl, you could
have declared them inline, and the function call overhead would be gone.
In addition, some tweaking of the body of memq could have allowed cmucl
and sbcl to inline member as well. Hence, EVERY call to memq could have
had inline code. Whether that speeds things up or slows things down
(cache effects), I can't say. :-)
Ray