🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99163

"Intelligent" screen update defeat

#99163
From: Timothy L. Kay
Date: Sat, 17 Nov 1990 00:24
25 lines
1873 bytes
I finally got fed up with Emacs' "intelligent" screen updating.  If you
have several repeated patterns in the file you are editing, then a C-v
will cause Emacs to (as much as possible) reuse what is already on the
screen rather than just send out the data another time.  I don't know
about all machines available, but I don't have any X terminals that can
scroll data around faster than they can receive new data.  (Pretty sad,
isn't it?)  Any way, on my Sun 3/160, it took a full *five* seconds to
do a C-v in a particular file.  I dug into the sources and found the
following in scroll.c, line 342.

	/* Put new lines' hash code in hash table  */
	for (i = start; i < end; i++)
	  {
	    if (cost[i] > 20)
	      {
		h = newhash[i] & 0777;

If you change the 20 to a 200, then the intelligent updating will be
disabled.  Perhaps this should be a parameter settable at runtime.  It
really means how short a line must be before it is worth simply sending
it out rather than copying it from another part of the screen.  My
change says that any line less than 200 characters should simply be
redrawn rather than copied.

Tim
Technical Details
Message-ID: <tim.658801474@gumby.cs.caltech.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!unixhub!lll-winken!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!GUMBY.CS.CALTECH.EDU!tim

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,1d23dfd23618f5d3,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-11-16 16:24:34 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!unixhub!lll-winken!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!GUMBY.CS.CALTECH.EDU!tim
From: tim@GUMBY.CS.CALTECH.EDU (Timothy L. Kay)
Newsgroups: gnu.emacs.bug
Subject: "Intelligent" screen update defeat
Message-ID: <tim.658801474@gumby.cs.caltech.edu>
Date: 17 Nov 90 00:24:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: California Institute of Technology, Pasadena
Lines: 25
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Sat Nov 17 01:24:34 1990