Explain why calling a named function conses and lambda doesn't?!?!?!?!
- From: jrwats@xxxxxxxxx
- Date: Thu, 27 Sep 2007 23:12:14 -0000
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)))
Evaluation took:
0.0 seconds of real time
0.0 seconds of user run time
0.0 seconds of system run time
0 calls to %EVAL
0 page faults and
4,128 bytes consed.
NIL
CHESS> (time (dotimes (i 64) (funcall (lambda ()
(logior (aref *black* *PAWN*)
(aref *black* *KNIGHT*)
(aref *black* *BISHOP*)
(aref *black* *ROOK*)
(aref *black* *QUEEN*))))))
Evaluation took:
0.0 seconds of real time
0.0 seconds of user run time
0.0 seconds of system run time
0 calls to %EVAL
0 page faults and
0 bytes consed.
NIL
.
- Follow-Ups:
- Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- From: Juho Snellman
- Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- From: Barry Margolin
- Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- Prev by Date: p4switch - little app that switches between different P4 servers
- Next by Date: Re: declare 64 bit integers?
- Previous by thread: p4switch - little app that switches between different P4 servers
- Next by thread: Re: Explain why calling a named function conses and lambda doesn't?!?!?!?!
- Index(es):
Relevant Pages
|