🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #13366

Re: String Handling -- Incompetence of run-time libraries

#13366
From: davidsen
Date: Tue, 31 Mar 1987 14:18
20 lines
1601 bytes
In article <1530@husc6.UUCP> reiter@harvard.UUCP (Ehud Reiter) writes:
$In article <1944@hoptoad.uucp> gnu@hoptoad.uucp (John Gilmore) pointed out
$that printf could be recoded to run much faster.
...
$strcpy2(ss1,ss2)
$char *ss1,*ss2;<---------------------------- put "register" on this line
${	register char *s1,*s2;<-------------- as many compilers will use this
$					      as local variables overriding
$	s1 = ss1;			      the arguments.
$	s2 = ss2;
$	while (*s1++ = *s2++);	}

I'm going to try these on some of the machines I use, and see if this
will speed up things.

-- 
bill davidsen			sixhub \
      ihnp4!seismo!rochester!steinmetz ->  crdos1!davidsen
				chinet /
ARPA: davidsen%crdos1.uucp@ge-crd.ARPA (or davidsen@ge-crd.ARPA)
Technical Details
Message-ID: <1359@steinmetz.steinmetz.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!styx!ames!ptsfa!ihnp4!chinet!steinmetz!davidsen
References: <15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> <18036@ucbvax.BERKELEY.EDU> <1944@hoptoad.uucp> <1530@husc6.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!styx!ames!ptsfa!ihnp4!chinet!steinmetz!davidsen
From: davidsen@steinmetz.UUCP
Newsgroups: comp.arch,comp.lang.c
Subject: Re: String Handling -- Incompetence of run-time libraries
Message-ID: <1359@steinmetz.steinmetz.UUCP>
Date: Tue, 31-Mar-87 09:18:26 EST
Article-I.D.: steinmet.1359
Posted: Tue Mar 31 09:18:26 1987
Date-Received: Sat, 4-Apr-87 06:17:46 EST
References: <15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> <18036@ucbvax.BERKELEY.EDU> <1944@hoptoad.uucp> <1530@husc6.UUCP>
Reply-To: davidsen@kbsvax.steinmetz.UUCP (William E. Davidsen Jr)
Organization: General Electric CRD, Schenectady, NY
Lines: 20
Keywords: instruction set architectures, strcpy
Summary: Good idea, BSD implementation