From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#67390: 28; shorthands-font-lock-shorthands assumes shorthand uses same separator Date: Sun, 26 Nov 2023 22:02:01 +0000 Message-ID: References: <87a5r5ph3p.fsf@bernoul.li> <87msv2vmzf.fsf@bernoul.li> <878r6mzezo.fsf@ushin.org> <87sf4tg6ts.fsf@bernoul.li> <875y1po3nk.fsf@ushin.org> <871qccqmgi.fsf@ushin.org> 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="37079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67390@debbugs.gnu.org, Adam Porter , Jonas Bernoulli To: Joseph Turner , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 23:03:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1r7NDg-0009RQ-UR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 23:03:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7NDO-00044F-BH; Sun, 26 Nov 2023 17:02:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7NDM-000436-KZ for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 17:02:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7NDM-0003Vl-Cg for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 17:02:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7NDS-0004lU-8O for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2023 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67390 X-GNU-PR-Package: emacs Original-Received: via spool by 67390-submit@debbugs.gnu.org id=B67390.170103615018254 (code B ref 67390); Sun, 26 Nov 2023 22:03:02 +0000 Original-Received: (at 67390) by debbugs.gnu.org; 26 Nov 2023 22:02:30 +0000 Original-Received: from localhost ([127.0.0.1]:42800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7NCw-0004kM-Ch for submit@debbugs.gnu.org; Sun, 26 Nov 2023 17:02:30 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:57638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7NCr-0004jz-0x for 67390@debbugs.gnu.org; Sun, 26 Nov 2023 17:02:28 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50aab3bf71fso4909457e87.3 for <67390@debbugs.gnu.org>; Sun, 26 Nov 2023 14:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701036133; x=1701640933; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gix8aCek+Hd5WJGHyo02ZzpVcn7p7nisACqQK6dUQVE=; b=nSOc64ntQdjJ2kXVPJEeacmVvtNXm+/d52Xxf/wbU9tx2Tt/koLHsAVja9/78c7JkK C3bgSjp2KGDHp6eIEL1ZblINkevM6BU/CRRUZvLOuA0Zf1+f67W6ZoL2jPKNdqrjlBOW cRE9qb9xb6WKFsQNtYYvseckDZkBFilqL1/7IVdf2iRB+rlvpjmfTMhz89z4RV8Wm4TT y2TS9mGzqNLQ/Pf+tPV4jH305npPTfj9TuLocAlNNBNCxg0W9QI8BZjZkP9dr4Qo0Dak 6tI9BkK4KC40iebmwmdz7T8E4pNw+FmVXwMg608UQZ27Q01zH7mluSuYLO/ZloI55VnM CdzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701036133; x=1701640933; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gix8aCek+Hd5WJGHyo02ZzpVcn7p7nisACqQK6dUQVE=; b=ujXNp+9hZGIXDyQQj29J6ggOEyoQVNzZrcHC2U+bgs4IhoYPHtqUz5quBmVUIjMMdU dS/AZqyd2Z08fyDe/2iaFNkzQ0Bnpv1c8GbD/jvRbkyxdu7FrMb6s6ZGCEBzTeCdWDAs 1fLmP0XdxVmdtPLQrSoV3HDkR0D5S0CnQgZh4WkVYZuJpXCc9Vi0Ki3xjk7EmlNrgtBt 57p7r9hIoYzJ941smDzbg/e8H/6U2kyJocabyYZ92ghtCYQn+76nQpuNTPRPske+SI17 IE/LMghw62YivBrkrRwUzX49+0Dwz9oj4nhO3nvq9H1L2+awWAYc7cBouUBDblgc5XL1 eFdQ== X-Gm-Message-State: AOJu0YzcXAM16nL5qZEQrTKmUydI3Sn/jrGcSJ8xK89Uk2aokQbyZBhj 1c8K52AsE1M7tcofnHr/jSr+tN9po+8Fnrnep9024Q4eU+I= X-Google-Smtp-Source: AGHT+IGC/3wA5/hVXxJcT+AtK8RL5ppFHjELJ+ZG4/cADhIybXSjaoExn4AdceFIIrjMVFSldhmRt80nvV4GDe1O1x8= X-Received: by 2002:a05:6512:3e02:b0:508:12f6:ff07 with SMTP id i2-20020a0565123e0200b0050812f6ff07mr8167121lfv.48.1701036132899; Sun, 26 Nov 2023 14:02:12 -0800 (PST) In-Reply-To: <871qccqmgi.fsf@ushin.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275090 Archived-At: On Sun, Nov 26, 2023 at 8:38=E2=80=AFPM Joseph Turner wr= ote: > > Jo=C3=A3o T=C3=A1vora writes: > > > On Sat, Nov 25, 2023 at 10:43=E2=80=AFPM Joseph Turner wrote: > > So, benchmarking it will have to be, I'm afraid, because AFAIK > > font-locking is a very performance sensitive area of Emacs. > > Yes. I would like to learn how to do this! I'm CCing Eli. In the past, ISTR, Eli suggested to benchmark such things by visiting a very large file in its beginning, then scrolling down by holding the down arrow or PgDn for some fixed time period, like 30 seconds. The Emacs that scrolls the farthest is the most performant. Not entirely fail-proof (other processes may interfere, etc), but not bad either. So here you could create very large fictitious Elisp file with 0, 1, 3 and 10 shorthands each and then run your version vs my version and record the final line numbers. Then show the files and the numbers. > > In the meantime I will push my patch, but keep the bug open to see > > if it is worth pushing Joseph's version. > > Thank you!! Now done in 36941e9e6a (master). > I'm happy to discuss this further if others are interested. I'm keeping this open. Jo=C3=A3o