Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- From: Juho Snellman <jsnell@xxxxxx>
- Date: 28 Sep 2007 00:37:43 GMT
jrwats@xxxxxxxxx <jrwats@xxxxxxxxx> wrote:
CHESS> (defun black ()[...]
(logior (aref *black* *PAWN*)
(aref *black* *KNIGHT*)
(aref *black* *BISHOP*)
(aref *black* *ROOK*)
(aref *black* *QUEEN*)))
CHESS> (time (dotimes (i 64) (black)))
4,128 bytes consed.
The consing numbers reported by sbcl, which you seem to be using, are
not exact, but can vary by a couple of pages (a page is 4096 bytes on
most sbcl platfroms). Try testing 640 iterations instead.
--
Juho Snellman
.
- References:
- Prev by Date: Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- Next by Date: Re: asdf depends-on problem
- Previous by thread: Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- Index(es):
Relevant Pages
|