[593] in Athena Bugs

home help back first fref pref prev next nref lref last post

[Daniel R. Levy: Re: [n]eqn(1) speedup]

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Wed Aug 10 23:07:38 1988

Date: Wed, 10 Aug 88 23:06:32 EDT
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

I think even though we don't have too many users, these simple patches
(this one and the original message) shouldn't hurt, and the time
investment probably isn't that large....

------- Forwarded Message

From: <raeburn@ATHENA.MIT.EDU>
Date: Wed, 10 Aug 88 22:05:14 EDT
To: raeburn@ATHENA.MIT.EDU

Path: bloom-beacon!gatech!ncar!oddjob!gargoyle!att!ttrdc!levy
From: levy@ttrdc.UUCP (Daniel R. Levy)
Newsgroups: comp.bugs.4bsd
Subject: Re: [n]eqn(1) speedup
Summary: While you're at it
Keywords: [n]eqn munches too much CPU time
Message-ID: <2855@ttrdc.UUCP>
Date: 9 Aug 88 04:02:34 GMT
References: <583@sbsvax.UUCP>
Organization: AT&T, Skokie, IL
Lines: 49

In article <583@sbsvax.UUCP>, bs@sbsvax.UUCP (Bernard Sieloff) writes:
# Subject: [n]eqn(1) speedup
# Eqn behavior is heavily sped up, if the "passing"-printf() calls  are
# changed to fputs() calls.
# 
# *** io.c.orig	Sun Sep  4 00:19:07 1983
# --- io.c	Sun Aug  7 20:39:03 1988
# ***************
# *** 32,38 ****
#   		eqline = linect;
#   		if (in[0]=='.' && in[1]=='E' && in[2]=='Q') {
#   			for (i=11; i<100; used[i++]=0);
# ! 			printf("%s",in);
#   			printf(".nr 99 \\n(.s\n.nr 98 \\n(.f\n");
#   			markline = 0;
#   			init();
# --- 32,38 ----
#   		eqline = linect;
#   		if (in[0]=='.' && in[1]=='E' && in[2]=='Q') {
#   			for (i=11; i<100; used[i++]=0);
# ! 			fputs(in, stdout); /* [bs] */
#   			printf(".nr 99 \\n(.s\n.nr 98 \\n(.f\n");
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
			Why can't this be a fputs too?

#   			markline = 0;
#   			init();
# ***************
# *** 58,64 ****
#   		else if (type == lefteq)
#   			inline();
#   		else
# ! 			printf("%s",in);
#   	}
#   	return(0);
#   }
# --- 58,64 ----
#   		else if (type == lefteq)
#   			inline();
#   		else
# ! 			fputs(in, stdout); /* [bs] */
#   	}
#   	return(0);
#   }
-- 
|------------Dan Levy------------|  THE OPINIONS EXPRESSED HEREIN ARE MINE ONLY
| Bell Labs Area 61 (R.I.P., TTY)|  AND ARE NOT TO BE IMPUTED TO AT&T.
|        Skokie, Illinois        | 
|-----Path:  att!ttbcad!levy-----|

------- End Forwarded Message

home help back first fref pref prev next nref lref last post