From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SERcJo2rImBXIQAA0tVLHw (envelope-from ) for ; Tue, 09 Feb 2021 15:34:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id fvM2Io2rImBlKAAA1q6Kng (envelope-from ) for ; Tue, 09 Feb 2021 15:34:37 +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 EF13D9403CD for ; Tue, 9 Feb 2021 15:34:36 +0000 (UTC) Received: from localhost ([::1]:42136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9V2B-0000qN-PE for larch@yhetil.org; Tue, 09 Feb 2021 10:34:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9UxT-0006X1-Gq for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 10:29:43 -0500 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:33379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9UxS-0004Uh-0d for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 10:29:43 -0500 Received: by mail-pg1-x534.google.com with SMTP id e7so3727570pge.0 for ; Tue, 09 Feb 2021 07:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=DwSGA1XWH6QBJ1EGxdvZcLm9ARrF5803Zb7mrX8JOvI=; b=Pw37Mz8vS0ruTqORAtNByXlbigi8mHHGzf8XwpsQcRgqhjWBj+zT3/eflz/W86TwR6 KokTIDFprHbxubK4N57+XRIYWp7u7yhry11toEM4fmNw/ra6XIondKe9qX57fn5N4ocr X2iVJdBpVqk9oXYLFvIUGO+HiETF/Y+lWWaaiYVWxTvGK006t5Cu/QrnC1tmU5/mZOEd LSPo5jdv5R5Rc60mqj+jpDTzQkPqzAo923G281hb6zVLpt/2xMNJlz39ciVqwA4rgvuD NGOyyNI9U2CHrcg7hJERb/bMmk7ImMIdC2+qMntEmDTfIuWP0cCDTsyny+VoE08Sghku e9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=DwSGA1XWH6QBJ1EGxdvZcLm9ARrF5803Zb7mrX8JOvI=; b=QLpLLaUnn8udgImeTWIuASpOUGeOxJiWQ3kP2s3hAqegR+3NOd5FCOOV7O+ocjeBHt gKvQ+nuWmkRE6dQPFIWUlvTh1enKZrYtcHpdeUJ6k+vlk1iU4+5k6vboguMq++x9MLIm RqtxAcQ9kWw6ydCyFGCG9N/VTYjFeyCf6rSk1/GtfPgebcD5fTqqlRtC63UrQUhgmXNQ YlfNuGP5G0Ca6ohREH4zTLc7RbL20sEwdUE9WFw0fYe17ASBK8iFmuBGVBcHWsZss8Hh LT77m+d7aTSu8SpMAc8cpjLCQKpPvLsKkj7V7jyAlDi0mUop+tAr64Fa88zwVJKU3D3z uLvQ== X-Gm-Message-State: AOAM530hXNiO2heQdcfFo1vHNvc+VZVIpVfyw2VEdaNGBTF9JneXu93A 96Gkuk00HuNCPJ9kTfc4AZY= X-Google-Smtp-Source: ABdhPJwnN1rBQwx03sT0OKBcjYpMo38ZHyF36JlWYuwQnnINJyFzB81V6ATSoHgs3K+6SEyxSaCX+A== X-Received: by 2002:a62:303:0:b029:1a5:a6f7:ac0d with SMTP id 3-20020a6203030000b02901a5a6f7ac0dmr23737795pfd.63.1612884580587; Tue, 09 Feb 2021 07:29:40 -0800 (PST) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id h124sm19040466pfe.216.2021.02.09.07.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 07:29:38 -0800 (PST) From: Ihor Radchenko To: sebastien.miquel@posteo.eu, emacs-orgmode@gnu.org Subject: Re: Typing latency In-Reply-To: <36c35724-0d94-0033-ffc0-1074d8da38a4@posteo.eu> References: <8f36ba0c-5b96-2af4-8d19-1dbf6c9d142e@posteo.eu> <87ft25zzyy.fsf@localhost> <36c35724-0d94-0033-ffc0-1074d8da38a4@posteo.eu> Date: Tue, 09 Feb 2021 23:33:44 +0800 Message-ID: <87v9b1tfvr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Pw37Mz8v; dmarc=pass (policy=none) header.from=gmail.com; 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: EF13D9403CD X-Spam-Score: -2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0jPo8S5VBmYT S=C3=A9bastien Miquel writes: > It reports that most of the time is spent in org-do-latex-and-related,=20 > and some 20% in something related to the priority faces (despite the=20 > lack of priority cookies). I also had issues with priority faces. It is related to sub-optimal regexp used to detect priority cookies. I have the following in my config to speed things up: (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") For the latex fontification, I never had issues, but you might play with org-highlight-latex-and-related. Hope it helps. Best, Ihor