home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!aiai!jeff
- From: jeff@aiai.ed.ac.uk (Jeff Dalton)
- Newsgroups: comp.lang.lisp
- Subject: Re: What do compilers optimize?
- Message-ID: <7409@skye.ed.ac.uk>
- Date: 1 Sep 92 12:55:12 GMT
- References: <7398@skye.ed.ac.uk> <17tvm1INNqdc@early-bird.think.com>
- Sender: news@aiai.ed.ac.uk
- Organization: AIAI, University of Edinburgh, Scotland
- Lines: 13
-
- Thanks to all who have responded so far.
-
- Another item:
-
- * Avoid recomputation of common "subexpressions" in a single procedure.
- (There must be many cases where a programmer would rather not write
- a LET and introduce a new variable.)
-
- It's fairly common to do this for CAR-CDR sequences, but I was
- surprised to find that certain implementations didn't do it for,
- say, LENGTH of a SIMPLE-VECTOR or even for arithmetic expressions.
-
- -- jd
-