Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: comp.lang.c Subject: STREQ Message-ID: <8206@utzoo.UUCP> Date: Fri, 26-Jun-87 14:04:50 EDT Article-I.D.: utzoo.8206 Posted: Fri Jun 26 14:04:50 1987 Date-Received: Fri, 26-Jun-87 14:04:50 EDT References: <8011@brl-adm.ARPA> Organization: U of Toronto Zoology Lines: 11 > However, STREQ may have only minimal value, as any good strcmp() > implementation will return immediately upon discovering that the first > bytes of its arguments do not match. Yes... but it still incurs the full call/return overhead, which is usually an order of magnitude more expensive than a simple one-character compare. STREQ and similar things produced a considerable improvement in the speed of C news, which does a lot of string-bashing. -- "There is only one spacefaring Henry Spencer @ U of Toronto Zoology nation on Earth today, comrade." {allegra,ihnp4,decvax,pyramid}!utzoo!henry