From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15011: 24.3; Scrolling Performance Date: Sun, 04 Aug 2013 17:32:15 -0400 Message-ID: References: <6BF8AEC9264CBA43A46A84B1CBF5464266F27BD9@US-MBX2.ingrnet.com> <20130803140649.GA3348@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375652011 11891 80.91.229.3 (4 Aug 2013 21:33:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 21:33:31 +0000 (UTC) Cc: Barry OReilly , 15011@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 23:33:29 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1V65vd-0007if-BO for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2013 23:33:29 +0200 Original-Received: from localhost ([::1]:56862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V65vc-0008P8-MG for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2013 17:33:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V65vR-0008L2-L7 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2013 17:33:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V65vK-00086g-Ax for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2013 17:33:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V65vC-00083q-LY; Sun, 04 Aug 2013 17:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V65vC-0006Gq-AG; Sun, 04 Aug 2013 17:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 04 Aug 2013 21:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15011 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 15011-submit@debbugs.gnu.org id=B15011.137565194424037 (code B ref 15011); Sun, 04 Aug 2013 21:33:02 +0000 Original-Received: (at 15011) by debbugs.gnu.org; 4 Aug 2013 21:32:24 +0000 Original-Received: from localhost ([127.0.0.1]:40197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V65ua-0006Fd-6x for submit@debbugs.gnu.org; Sun, 04 Aug 2013 17:32:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14752) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V65uY-0006FH-1H for 15011@debbugs.gnu.org; Sun, 04 Aug 2013 17:32:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxKix/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFxKix/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="20556948" Original-Received: from 69-196-168-177.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.177]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Aug 2013 17:32:09 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B8CD862DAB; Sun, 4 Aug 2013 17:32:15 -0400 (EDT) In-Reply-To: <20130803140649.GA3348@acm.acm> (Alan Mackenzie's message of "Sat, 3 Aug 2013 14:06:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76953 Archived-At: > I think the best behaviour on auto-repeat scrolling in slow fontifying > modes would be for the text to scroll by unfontified until the > key is released, the final window contents then being > fontified. I've not managed to configure the current jit-lock to > achieve this behaviour. Is this possible? Setting jit-lock-defer-time to (/ 1.0 repeat-rate) should get you fairly close. > `jit-lock-function' could then be modified to calculate how many buffer > positions it is going to be expected to fontify, and whether it can > achieve this before the putative next auto-repeat scroll command > arrives. We could refine jit-lock-defer in such a way, indeed. I guess we could do something like set jit-lock-defer-time to a very low value (like 0s) and then each time we get a request for N bytes of fontification, we postpone running the timer by some additional increment (until reaching some maximum). Of course, this assumes that the time to fontify is proportional to the text to fontify, which is not necessarily the case (in many case, a significant part of slowdown is a need to scan a large amount of text before point to determine the syntax at a particular position in the buffer, so just fontifying this particular position will require a lot of time). Note also that the OP mentioned: > Once you have scrolled to the bottom of the file Page Down will work > reasonably, however page up remains slow. Which seems to indicate that page-up scrolling is too slow even when font/jit-lock is not called any more. Stefan