home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!ai-lab!tropicana!kenneths
- From: kenneths@tropicana.ai.mit.edu (Kenneth J. Schneider)
- Newsgroups: comp.lang.c
- Subject: if and case alternative
- Date: 19 Dec 1992 16:44:55 GMT
- Organization: MIT Artificial Intelligence Lab
- Lines: 8
- Sender: kenneths@tropicana (Kenneth J. Schneider)
- Distribution: world
- Message-ID: <1gvji7INNu7@life.ai.mit.edu>
- NNTP-Posting-Host: tropicana.ai.mit.edu
-
- on the previous if/case thread...
-
- one not-so-readable way to avoid the slowness of a *large* list of if/else's or
- cases would be to make an array of pointers to the functions. this would, i
- believe, quite a bit slower for a small number of cases, but would be much better
- (for speed) for a large number of cases.
-
- comments?
-