[plt-scheme] Are superfluous expressions optimized away?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Feb 20 19:15:54 EST 2007

They don't. But don't take my word for it. Do some timing tests.


On 2/20/07, Derick Eddington <derick.eddington at gmail.com> wrote:
> Are superfluous expressions, like say '() or (void) when not in tail- or
> binding- or pass-value-position or any other value-is-used position,
> optimized away (maybe only when compiled to byte-code)?  I'm wondering
> if conditional compilation macros like (debug expr ...) which expand to
> '() or (void) would incur zero performance penalty?  If not, the
> performance cost is probably very negligible?
> --
> : Derick
> ----------------------------------------------------------------
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.