From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4IpzDcy+KmB9cwAA0tVLHw (envelope-from ) for ; Mon, 15 Feb 2021 18:34:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sMAwCcy+KmCuHQAAB5/wlQ (envelope-from ) for ; Mon, 15 Feb 2021 18:34:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8572C1782F for ; Mon, 15 Feb 2021 19:34:51 +0100 (CET) Received: from localhost ([::1]:57522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBihs-0000Pv-TI for larch@yhetil.org; Mon, 15 Feb 2021 13:34:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBidJ-0005xa-6U for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 13:30:05 -0500 Received: from mout02.posteo.de ([185.67.36.66]:52689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBidG-000665-7K for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 13:30:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 22D382400FD for ; Mon, 15 Feb 2021 19:29:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1613413797; bh=zOJ09/yXg2Np1R1TWWpZGQVu4UPKSKNXv+h3PjdtScE=; h=Subject:To:Cc:From:Date:From; b=CawJsABZFoee0+jU/SRQnxA+5zSI6cqOmsiRg87SoUIbBqzLJSjvGFRVXZlCnejsr 9u8JU6Zarvau7tQmoGPPUEtwxy4gecdxlPaIGJitIBi3Okn89+f3yuOZhpr+YvaeA7 tDqesgQT9o+2kv31mlmTtbd+hHNjFkt1p5InivVNRjht/6YrVPN2HH/5GHznkth5Kx kEwCV0SewRZmcurWETFnSrIuxSsmOK9ncHzef1CPB4Mjn8Q0zTSNLJ57mX4Km8OUjy nqBkYnV1foi2WGKejiXWzQFeND7mogbXEAbLZu+f41a+/qzZFzoW6qI3Oger1XoMKk TrD7g//PJP5dA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DfXhN1HPJz6tmW; Mon, 15 Feb 2021 19:29:56 +0100 (CET) Subject: Re: Typing latency To: Timothy References: <8f36ba0c-5b96-2af4-8d19-1dbf6c9d142e@posteo.eu> <87ft25zzyy.fsf@localhost> <36c35724-0d94-0033-ffc0-1074d8da38a4@posteo.eu> <87v9b1tfvr.fsf@localhost> <87sg64ti6s.fsf@ucl.ac.uk> <87im6vfejz.fsf@gmail.com> <87a6s77x7q.fsf@ucl.ac.uk> <87h7meke8h.fsf@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: Date: Mon, 15 Feb 2021 19:29:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87h7meke8h.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode@gnu.org, Ihor Radchenko , Eric S Fraga Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=CawJsABZ; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8572C1782F X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7wGobEH4kyUD Timothy writes: > #+begin_src diff > org-priority-regexp > - (defvar org-priority-regexp ".*?\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)" > + (defvar org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)" > #+end_src > > Since this thread seems to suggest it's (1) faster (2) more correct. If anyone's considering writing a patch, note that this breaks ~org-get-priority~ and ~org-agenda-fontify-priorities~ (used in the agenda). Best to keep both regexps around. In a 1k lines org file, it reduces the time to fontify the whole buffer by 0.1 second. I do not know how much of a change this makes wrt to typing latency. -- Sébastien Miquel