From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Aborting display. Is this possible? Date: Tue, 21 Oct 2014 18:40:30 +0300 Message-ID: <83vbnda0sx.fsf@gnu.org> References: <20141019141712.GB3197@acm.acm> <83lhoccdv7.fsf@gnu.org> <20141019154255.GC3197@acm.acm> <83egu4c4om.fsf@gnu.org> <20141020110949.GA2947@acm.acm> <8338aidbcq.fsf@gnu.org> <20141020185757.GD2947@acm.acm> <83lhoabl2x.fsf@gnu.org> <20141020210819.GE2947@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1413906080 24516 80.91.229.3 (21 Oct 2014 15:41:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 15:41:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 17:41:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgbYb-0000zL-Hr for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2014 17:41:09 +0200 Original-Received: from localhost ([::1]:51593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgbYb-0007jk-5R for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2014 11:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgbYT-0007jQ-Ii for emacs-devel@gnu.org; Tue, 21 Oct 2014 11:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgbYK-0002GF-DD for emacs-devel@gnu.org; Tue, 21 Oct 2014 11:41:01 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgbYK-0002Fz-4p for emacs-devel@gnu.org; Tue, 21 Oct 2014 11:40:52 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NDS00100WRRE800@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 21 Oct 2014 18:40:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDS0013ZWVO4W60@a-mtaout20.012.net.il>; Tue, 21 Oct 2014 18:40:36 +0300 (IDT) In-reply-to: <20141020210819.GE2947@acm.acm> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175644 Archived-At: > Date: Mon, 20 Oct 2014 21:08:19 +0000 > Cc: emacs-devel@gnu.org > From: Alan Mackenzie > > > Also, "enters redisplay" needs to be taken with a grain of salt here. > > The reference is to display "simulation", whereby Emacs proceeds > > through buffer text line after line, computing the metrics of the > > characters as it goes (and invoking fontification functions if > > needed), but doesn't store the results in glyph matrices and doesn't > > proceed to redrawing based on that. So it's only partial redisplay. > > The full redisplay will be done later, after the scrolling command did > > its part, and Emacs is back in the command loop with no available > > input. > > Yes, I've got that. But in CC Mode, it's the fontification which takes > most of the time (see also below). Then I suggest to boost the speed of that. Optimizations should be done in the part that takes the 80 or 90% of the time. > > There isn't really a good solution for when input comes in faster than > > Emacs can process it. > > Er, making Emacs process the input faster? It is already very fast, as your measurements suggest. What slows us down is fontifications. That's where we should try to optimize. > > > And each such PageDown key will necessitate full font-locking for its > > > never-to-be-displayed screen. > > > No, not full, only partial. See above. > > I don't see the "above" here. When I tested the `fontified' property > this morning, EVERY position from point-min to point had been fontified. I thought I've already succeeded in explaining why. "Partial" here means that the actual drawing to the glass is not done. Fontifications _are_ done, because without that, Emacs would not know where in the buffer is that point N screenfuls away.