From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: jit-lock-antiblink-grace Date: Tue, 15 Oct 2019 09:48:05 +0300 Message-ID: <83sgnuh5cq.fsf@gnu.org> References: <834l0enw8c.fsf@gnu.org> <83y2xqm6m4.fsf@gnu.org> <83o8ymlzkk.fsf@gnu.org> <835zktm9o0.fsf@gnu.org> <83o8ylknjw.fsf@gnu.org> <83k198ly94.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140757"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 15 08:49:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iKGdk-000aVg-S7 for ged-emacs-devel@m.gmane.org; Tue, 15 Oct 2019 08:49:04 +0200 Original-Received: from localhost ([::1]:35254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKGdj-0002Re-P7 for ged-emacs-devel@m.gmane.org; Tue, 15 Oct 2019 02:49:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43930) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKGct-0002MY-SY for emacs-devel@gnu.org; Tue, 15 Oct 2019 02:48:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iKGct-0003JB-Jj; Tue, 15 Oct 2019 02:48:11 -0400 Original-Received: from [176.228.60.248] (port=3114 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iKGcp-0002aC-Os; Tue, 15 Oct 2019 02:48:09 -0400 In-reply-to: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Tue, 15 Oct 2019 00:29:51 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:241034 Archived-At: > From: João Távora > Date: Tue, 15 Oct 2019 00:29:51 +0100 > Cc: emacs-devel , Stefan Monnier > > So I tried this with and without the hook. I removed it (forcibly) with > > (remove-hook 'post-command-hook > 'jit-lock--antiblink-post-command t) > and re-added it with > > (add-hook 'post-command-hook > 'jit-lock--antiblink-post-command nil t) > > before beginning the test. > > I confirmed that without the hook the feature is crippled and fails, and > with the hook it works fine. This was easier then launching separate > emacsen with jit-lock-antiblink-grace customized differently. > > 60 second-long C-n in src/xdisp.c, > without antiblink: line 706, avg load 4% > with antiblink: line 717, avg load 4% > 30 second-long C-n in lisp/minibuffer.el, > with antiblink: line 366, avg load 4% > without antiblink: line 361, avg load 4% > > Time to end of buffer with C-v in lisp/minibuffer.el: > with antiblink: 10 seconds, avg load 6% > without antiblink: 10 seconds, avg load 6% > > Time to end of buffer with C-v in src/xdisp.c: > without antiblink: 90 seconds, avg load 8% > with antiblink: 91 seconds, avg load 8% This is encouraging, but please try C-n near the end of xdisp.c, so that it includes syms_of_xdisp. The first 350 lines of xdisp.c is one large comment, and there's a very small number of strings after that. Thanks.