From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Mon, 14 Jun 2021 09:40:36 +0100 Message-ID: References: <86a85d26-75c0-e4a3-e8d3-244c5346dd3a@dancol.org> <83r1hehnz9.fsf@gnu.org> <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <4140fcf4-3119-3f3f-4ac4-24d497774754@gmx.at> <874ke2ulhc.fsf@gmail.com> <706b6214-5a85-3b47-3851-bb7742a066af@gmx.at> <87r1h5u6qp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18547"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , emacs-devel , Stefan Monnier , Alan Mackenzie , Eli Zaretskii , Daniel Colascione To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 14 11:00:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsiSX-0004ds-3X for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Jun 2021 11:00:41 +0200 Original-Received: from localhost ([::1]:44008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsiSW-0002Ka-52 for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Jun 2021 05:00:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsi9M-00071a-Hl for emacs-devel@gnu.org; Mon, 14 Jun 2021 04:40:53 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:55224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsi9K-0005LY-Lp; Mon, 14 Jun 2021 04:40:52 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id g24so9282793pji.4; Mon, 14 Jun 2021 01:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rWKbUuPB44LkKqggIAzD2Ac8s9vN+hCnFD4NMGHpph0=; b=EEwNnHeK5v9lLI//M2UV666duZ1ZCNVEia6/k9pWj4//Xgq+a+cT6WSIMlgkQDgvtp InfzsT3YpPSG1l/G8MjOu7uBIhVYRE2WQcYgyHEj+DqxK4hleGujqkY0MNZMUU/j+zW6 XMuAVJWdhKMOf9j0oJJgMtBx809lz+4P+fadZqa/CCoKl85Uq0Ljc1mbKJ8dDhzl1ha6 lbbLZfH+ZwsJpSwU07tMycDzelyXSjOVaf6E5xEFLdMlTPKXehHLlcFgIKzCvJKn2gbE ND9nyzpPdCc0/9RJEMSlTOt24cDLjHKTP36SqGQB1VTKa8UvubTRhqC4t36SBP1W3oss KqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rWKbUuPB44LkKqggIAzD2Ac8s9vN+hCnFD4NMGHpph0=; b=BDRBsBQTObhffHWigKiY63dG+qrzUdVw4GFFmg9NA/i864aTrawgu+G0B06BuuIoB/ CpPlDUpk5BFdxFGYuKk7612T46Nq7PRdFI0Jr7BsqRgyREGj1CmHM00bRW0Ip1npuoee fUIwTpw8rhcWNsWeqgGI0TLBiDqxquUDo3k3hn8mkQWDyNIOMRT/+r3w2yWyWaJp+b/4 rapHevrmb6yMLkZvpzDOarl13mTPAy8PRuYAoYB4OM/ykcqSKR0di4hH9T2vMkSaLgW8 IJC5ymAtwolHezAqoJzjKLoounSYXGpLN3L7jMJRov2iLZqkBi2ZjFGRB9bmNdN+v/8c ldCQ== X-Gm-Message-State: AOAM532DrEZwQELrCqTp4kBkwujJSyiNz0hr+GH+VlDQnvqgyyDLKZu6 R1XwougH6VQ6TbMK7U3I3GXHZPqOXeenMls2KU4= X-Google-Smtp-Source: ABdhPJxXo3pDzPKakgtWgJWoKJ+FcCCli95Uc5hUmx60Cke04/MC32yV+6btjDXDBx7tneV0AnAs06AEkN6UVcXdJPM= X-Received: by 2002:a17:902:a981:b029:116:a139:6054 with SMTP id bh1-20020a170902a981b0290116a1396054mr15797268plb.60.1623660048071; Mon, 14 Jun 2021 01:40:48 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=joaotavora@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270805 Archived-At: > On Mon, Jun 14, 2021 at 9:29 AM martin rudalics wrote: > > > I benchmarked the effects of this > > in large files according to specific instructions by Eli who was also > > concerned about the performance hit and found no evidence of any kind = of > > punishment. > > Why on earth should file size have any impact on the performance of this > option? A question for Eli perhaps? The file was xdisp.c where jit-lock is suppose= dly quite demanding. > It introduces a constant overhead that affects every single > character a user types. And that overhead was found to be negligible. Even small enough not be easily measured. In the meantime, if you are concerned with this, you can produce a benchmark that evidences this overhead. > > See C-h v jit-lock-antiblink-grace. > It should be documented in at least one manual. It could, but other customization options such as jit-lock-stealth-load and jit-lock-contextually, jut-lock-stealth-nice, jit-lock-stealth-time, and probably others aren't. Not all defcustom's have manual entries (for the record, IM= O this is a good idea: the manual should have a different reading cadence). But no problem if you want to make a patch that basically adds the contents of the docstring to display.texi. Jo=C3=A3o