Re: Code Feedback Wanted (Generating more garbage)

From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 15:58:31 GMT


David Steuber wrote:
> (defun shifted-multiply (&rest args)

I am no expert, but I think this forces a consing of a list. But the
code I see always calls s-m with two values or two values and *my-two*
(aside: would making some of these defvars into defconstants help?). So
perhaps some benefit can be had by creating two functions s-m and s-mx2,
  where the latter expands to (s-m *my-two* (s-m x y)).

I think there was another function in there also using &rest args, but I
did not check that one out more closely. As a rule, there is a cost to
&rest, &key, and (I think) &optional.

Nice picture, btw.

kt

-- 
Home? http://tilton-technology.com
Cells? http://www.common-lisp.net/project/cells/
Cello? http://www.common-lisp.net/project/cello/