efficiency of let vs. let*
From: Alexandru Harsanyi (harsanyi_at_mac.com)
Date: 07/29/04
- Next message: Pascal Bourguignon: "Re: Towers of Hanoi Problem"
- Previous message: Christian Pietsch: "Alan Kay for everybody / was: Your Guru Paul Graham is getting trashed on Slashdot."
- Next in thread: Hannah Schroeter: "Re: efficiency of let vs. let*"
- Reply: Hannah Schroeter: "Re: efficiency of let vs. let*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jul 2004 13:53:48 GMT
Just out of curiosity I looked at the eval implementation for GNU
Emacs (eval.c file), and noticed that the implementation of let* seems
more efficient that the implementation of let. The later involves
allocating a temporary array to hold the values from evaluating the
forms before binding them to the variables.
I'm wondering if this is true in all LISP implementations?
I don't think the speed difference between let and let* very big, so
it doesn't really matter, but I'm just curious :-)
Thanks,
Alex.
- Next message: Pascal Bourguignon: "Re: Towers of Hanoi Problem"
- Previous message: Christian Pietsch: "Alan Kay for everybody / was: Your Guru Paul Graham is getting trashed on Slashdot."
- Next in thread: Hannah Schroeter: "Re: efficiency of let vs. let*"
- Reply: Hannah Schroeter: "Re: efficiency of let vs. let*"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|