home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!news.cs.bham.ac.uk!percy!tmr
- From: tmr@cs.bham.ac.uk (Tim Read)
- Newsgroups: comp.lang.pop
- Subject: Clarity VS Efficiency in POP11
- Message-ID: <TMR.92Nov21122734@emotsun.bham.ac.uk>
- Date: 21 Nov 92 12:27:34 GMT
- Sender: news@cs.bham.ac.uk
- Organization: School of Computer Science, University of Birmingham, UK
- Lines: 28
- Nntp-Posting-Host: emotsun
-
- I am posting this after a good conversation I had in the bar (that well
- known debugging room) last night.
-
- It is my feeling as a competent beginner in POP11, that putting too many
- efficiency hacks into your code tends to lose the inherent clarity that
- POP11 provides.
-
- My conclusion is that (bearing in mind I am using an 86 MIP workstation), I
- will not worry about efficiency until I notice that my program is running
- slowly. An example of what I mean is using a temporary closure within a
- loop, which looks nice and neat, but will cause extra garbage collections,
- as opposed to using an lblock (As Aaron pointed out).
-
- Until I notice that it takes longer for the program to run than it does for
- the data to be output, I'll lose no sleep over it....
-
- Comments ?
-
- Tim
-
-
-
- --
- --------------------------------------------------------------------
- Tim Read, Email: tmr@cs.bham.ac.uk, The Attention and Affect Project
- Room LG23, School of Computer Science, The University of Birmingham,
- B15 2TT, England, Phone: +44-(0)21-414-4766, Fax: +44-(0)21-414-4281
- --------------------------------------------------------------------
-