Re: Code Feedback Wanted (Generating more garbage)
From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 03/24/04
- Next message: patrik_at_nordebo.com: "Re: Some questions from a game designer"
- Previous message: Espen Vestre: "Re: The LOOP macro"
- In reply to: David Steuber: "Code Feedback Wanted (Generating more garbage)"
- Next in thread: Duane Rettig: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: Duane Rettig: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: David Steuber: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: John Thingstad: "Re: Code Feedback Wanted (Generating more garbage)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Next message: patrik_at_nordebo.com: "Re: Some questions from a game designer"
- Previous message: Espen Vestre: "Re: The LOOP macro"
- In reply to: David Steuber: "Code Feedback Wanted (Generating more garbage)"
- Next in thread: Duane Rettig: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: Duane Rettig: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: David Steuber: "Re: Code Feedback Wanted (Generating more garbage)"
- Reply: John Thingstad: "Re: Code Feedback Wanted (Generating more garbage)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]