From ... Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!134.222.94.5!npeer.kpnqwest.net!reader3.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: How can i make "case" to use equal? References: <9n2ga3$4ng56$1@ID-91322.news.dfncis.de> <3208606982556119@naggum.net> <3208789962759722@naggum.net> Mail-Copies-To: never From: Erik Naggum Message-ID: <3208796186377652@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 Sep 2001 20:16:27 GMT X-Complaints-To: newsmaster@Norway.EU.net X-Trace: reader3.kpnqwest.net 999807387 193.71.66.49 (Thu, 06 Sep 2001 22:16:27 MET DST) NNTP-Posting-Date: Thu, 06 Sep 2001 22:16:27 MET DST Xref: archiver1.google.com comp.lang.lisp:15782 * Thomas F. Burdick > The one thing I would have done differently from your version would be > to special-case EQL to make it expand into a normal CASE form. It would be a wasted gethash call, but otherwise no different at all. So I am not sure what you think would be so different. > I'm guessing that would give better performance for things like > (case x > (0 ...) > (1 ...) > (2 ...) > ... > (15 ...)) > where you've already told the compiler that X is [0, 15]. Nothing would happen to these keys, and the case would do exactly the same as without my code. If you did not specifically refer to my code but replied to my article, anyway, ignore this. Replying to a slightly different article than you appear to is normal on USENET, but it is still a little confusing. ///