From owner-freebsd-arch Sat Oct 30 15:22:48 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 10BE714CA2 for ; Sat, 30 Oct 1999 15:22:44 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id AAA11655 for ; Sun, 31 Oct 1999 00:22:24 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id AAA63093 for freebsd-arch@freebsd.org; Sun, 31 Oct 1999 00:22:24 +0200 (MET DST) Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (Postfix) with ESMTP id 1E13214CA2; Sat, 30 Oct 1999 15:22:10 -0700 (PDT) (envelope-from dima@tejblum.pp.ru) Received: (from uucp@localhost) by arc.hq.cti.ru (8.9.3/8.9.3) with UUCP id CAA95430; Sun, 31 Oct 1999 02:22:08 +0400 (MSD) (envelope-from dima@tejblum.pp.ru) Received: from tejblum.pp.ru (localhost [127.0.0.1]) by tejblum.pp.ru (8.9.3/8.9.3) with ESMTP id CAA03763; Sun, 31 Oct 1999 02:28:50 +0400 (MSD) (envelope-from dima@tejblum.pp.ru) Message-Id: <199910302228.CAA03763@tejblum.pp.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: obrien@freebsd.org Cc: freebsd-arch@freebsd.org From: Dmitrij Tejblum Subject: Re: stpcpy() In-reply-to: Your message of "Fri, 29 Oct 1999 23:46:55 PDT." <19991029234654.B89583@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 31 Oct 1999 02:28:50 +0400 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David O'Brien" wrote: > Why is it so useful and "improves" performance so much?? Good stpcpy() could double performance in some cases. You would touch a symbol once where you previously touched it twice. It actually may matter in some text-processing applications. > Especially in the face of portability. For a programmer, there is no reason to lose the improvement (even small one) on some platforms (such as Windows :-), since a fallback implementation of stpcpy() is trivial. Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message