From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iMnnDHC9VGCeIgAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 15:04:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eFOkCHC9VGClQAAAB5/wlQ (envelope-from ) for ; Fri, 19 Mar 2021 15:04:16 +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 7C90E1C98F for ; Fri, 19 Mar 2021 16:04:15 +0100 (CET) Received: from localhost ([::1]:36994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNGfe-0004cX-7h for larch@yhetil.org; Fri, 19 Mar 2021 11:04:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNGef-0004Ze-MB for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 11:03:13 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:38835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNGec-0001cp-Pd for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 11:03:13 -0400 Received: by mail-lf1-x12d.google.com with SMTP id f3so2130830lfu.5 for ; Fri, 19 Mar 2021 08:03:09 -0700 (PDT) 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; bh=vl25j2CqCq5PpcM5gTEAJl+Pcso/LT4maADYuTlgFRY=; b=m0gyyGzK3cwQzC9rBd98W/A9YgIS1VG+yQONK2U7FN5JBvMPV+vFqC/09ma9DT4ymE wliEW9nQ5s95M/3xfVXBPSseoW3NrSjKs3GXGH6N5VFzgm3SC0VFUwFrzqoF4qg2bQb4 Dn0zBH451Bvcq2Y4NnYaEUyYQkegFqtA0hDDBBeUeoGcQ1ownYPBtw7r9z/DC1uMaBQe QEb2Jju5jMdosVOgWEMOJh9f/5X5r5goFGS6VeOgS2uAMxDm2MU3LkxeOknyNFhrVwzd r3HuEiilFWzSCoYJyqp5SM3iYMppWre7/j040wemgNnPEUHrLtxvBnOyDLVOsGu5QUfk K0Iw== 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; bh=vl25j2CqCq5PpcM5gTEAJl+Pcso/LT4maADYuTlgFRY=; b=GxAnDeZiAavaWWwfLEGJAHRfq1k3TT7IznHkK7nqw0rp1SmqyF1gRHZPs/5rgvqQpX Ewa9dIqNj8rV8Qku2R9VAfaV6SeAJVH/PreTcurV/aFJsJZkeE2Bd8o2BhwzqxOBxWl2 KhzelB8WraQYfcXCdH2wt8J/ByuhRBY9G9zPDdc0+nGauLQGGQhfMvR34Oq081Wy2kYx gol6b46U1wXDNMfueFlQnQLfPK4OU6+r7+jBZK5vb7hzBVIJ/9YPBsLxSvffI7w7l8yK Xwa6I0U//JueLNa9/uYamWbue0FT5Rx/uVE6Ok993UQjwpAa6TH9KjcAIjNM0wkDVFxD TRUg== X-Gm-Message-State: AOAM530iTBme9jZfVW6zgVGhnLeghzpay7GSJRXYPDK2yCht1NETEvKz A+shEKpOmRWS1/dD1x3nQmE= X-Google-Smtp-Source: ABdhPJyywQEI+FZ5k4lkkVcork4DJi9yvmNUK44a7ddYvIpff6nuooFhvrNwb/GIlUQ6TTOVSjoQAg== X-Received: by 2002:a05:6512:21a5:: with SMTP id c5mr126457lft.534.1616166188199; Fri, 19 Mar 2021 08:03:08 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id f26sm648966lfe.118.2021.03.19.08.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 08:03:07 -0700 (PDT) From: Ihor Radchenko To: Maxim Nikulin , emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: Bug: Plain https links with brackets are not recognised [9.4.4 (release_9.4.4-625-g763c7a @ /home/yantar92/.emacs.d/straight/build/org/)] In-Reply-To: References: <87pn03g3rr.fsf@localhost> <87sg4zu47p.fsf@kyleam.com> <87k0qbk4rq.fsf@localhost> <87h7lfk4mz.fsf@localhost> <8735wvuvi3.fsf@localhost> Date: Fri, 19 Mar 2021 23:07:14 +0800 Message-ID: <87czvv5gil.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12d.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616166255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vl25j2CqCq5PpcM5gTEAJl+Pcso/LT4maADYuTlgFRY=; b=B6WygEi2qf5eC9QYXssTLVb7WPlAyHQmAlJ3IrCmZ1K47etuxrK4RZbQwX0PPBxflE4mIy ubD3Lti3AQWZQxBfbGdi7/0OK3SOVVpiYJ/jm66ora/qPTeLfcM0Gj5C9ckCnvJfdjvTfx mwikoTwudoKRZAtwthlDBzaMCrQgbBrCJNrylmhsbM/slgc8HIvkbBOEYGM+iRltf9PCuA 1Rgqi2RQz99M/djo8k0p9Mk3t0aILoWZcKXnhQTL3UMbd1101gSKHeTqKvYOgTvUSFUrFK lkm1PIDSLW8JwQP6zJpZfJyJFqOgtX0i7+Xj8yo5VeVTuK7RCnTeb3/f3AfA4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616166255; a=rsa-sha256; cv=none; b=C6frxTVtJnVj7H/4m/DKPzCYUIEE20EZxvUJ7Lo4za64yNkcEFTTZbnVQAckvyuq2t5DqE JAhpe9IRalW9aor3Sc8BU9urAOZECT5yewd6c9SNJ4dWgAWJ8eA9y3LKlZPVWLRj8XR68L NqeE6UNpVxVH8VNc4tuxkLASULZibhyv+foFmWffmEK1QhBrQNgJv+Rjy2FQ9k3nhBpdbz SKvW8rW7MhA5LyqQQFKK37fdderPnVkVslc0Fm6HPEBRKlZpK9vcux9UlIyxEYz9/cOdSf L7UymUB0QZs2gQphHDWa2GolMgxd+3GRRNK4E03ryVAP0lcpGUbFVCqDTM4j2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=m0gyyGzK; 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-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=m0gyyGzK; 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: 7C90E1C98F X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: kn619lkoHPgY Maxim Nikulin writes: > I could not guess how to benchmark font-lock. I have tried to open file > (to get everything loaded), kill the buffer, I usually just use profiler-start/open buffer/profiler-report. However, there is also https://github.com/Lindydancer/font-lock-profiler for more fine-grained benchmark. Also, you may instrument org-activate-links with elp.el (built-in). > but I see some changes in the buffer after 0.19 is reported (both with > and without the patch). However I have not converted bracketed links > into plain ones yet. I was going to try if some tricks could improve > performance. E.g. I am curious if it will work noticeably faster when no > nested parenthesis are allowed, but single ones may be at any position, > not necessary at the end. I am currently looking into somewhat orthogonal approach. Instead of tweaking individual regexps (there were similar issues with priority regexp in the past), I am trying to use custom font-lock-fontify-region-function. Once we avoid fontifying folded text, startup time drops several times at least. I can see the difference immediately. It comes at the cost though - the behaviour of some Org API functions changes. They will not always return fontified text. AFAIK, at least helm-org and helm-org-ql do reply on such fontification. > Are changes in white spaces below actually modified lines in your patch > intended? They are generated by aggressive-indent. Since org files mix indentation styles I keep getting those whitespace changes in my patches. Forgot to remove this time. Should I? Best, Ihor