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 GPjmJgEdUmAjBQAA0tVLHw (envelope-from ) for ; Wed, 17 Mar 2021 15:15:13 +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 6PTrIgEdUmAsWAAA1q6Kng (envelope-from ) for ; Wed, 17 Mar 2021 15:15:13 +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 DC475121B6 for ; Wed, 17 Mar 2021 16:15:12 +0100 (CET) Received: from localhost ([::1]:45062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMXt8-0003IP-Hy for larch@yhetil.org; Wed, 17 Mar 2021 11:15:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMXeX-0005uB-M3 for emacs-orgmode@gnu.org; Wed, 17 Mar 2021 11:00:05 -0400 Received: from ciao.gmane.io ([116.202.254.214]:33244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMXeU-0003Hg-Mi for emacs-orgmode@gnu.org; Wed, 17 Mar 2021 11:00:03 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lMXeR-0003Q1-M6 for emacs-orgmode@gnu.org; Wed, 17 Mar 2021 15:59:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin 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/)] Date: Wed, 17 Mar 2021 21:59:53 +0700 Message-ID: References: <87pn03g3rr.fsf@localhost> <87sg4zu47p.fsf@kyleam.com> <87k0qbk4rq.fsf@localhost> <87h7lfk4mz.fsf@localhost> <8735wvuvi3.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <8735wvuvi3.fsf@localhost> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1615994113; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=epPL4SG5PJlUfXPCNxNAARbYhqVX3sIGR2PwHszFqVU=; b=IJ8tT4tMh/6GgATqpQKUtNdGutkWDLRQXxDvZ8wbxvtyZgOZZg4HZQ7XU3+HZA1+TiYCZo Hd9mMQhn1yNUn0QUkTdBG7K5YOsbw9wLbQZp4nolQ2oucJ0gejO2GdzHx8kMNIWh0MV8gr 2Z1PFSewDSc/mFralGzEqI3gnmY2cYyBPq8kf7glKzv6ymFy0q6Qkq8eDMXYMVsyuOqXT7 Epk16YpEhc4MkhvN2uq3xV/UCPxMrXtUw9pzcIWdVa6sfDgOsJpgUCsDrXPiKGm2RDPgDO h5/ZBcefUL7Rna9+SZuM317Q191wl2zrfJasG0xRD+LqT57OVasvPTRJ3OHHrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615994113; a=rsa-sha256; cv=none; b=ak3YVURnTrG6ZuhCpONK4s7Exq+QqBQiQ9ISQ9IPAB6qda5L3I/SGsrWJwEnAx4Oe1jNeF v/9EXjy3qkTncbbch0futc5JsLphuucYhG4aZ8uzpqCfQEixa9INLiWjPDMMUPWRn8Zc3a PWEVQ3nx4Jdr6CYYn5wQp79BR+dZfyNPP8FsBB3cwpBLKVWVXhEJXWxn702+E7mUo68v6I 0tn5P6pNPnf5/35K0f8Vw/oTIxnWnqSdkCvklPViz5DgXn2TyOZpPtSO6GGcQ58TTAUk+N fsPIcsXoAJ568zbT/Tf2aA0vG5/JokfQIgThIf+MO/vEm9Mufq/z0r8veO3DOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: DC475121B6 X-Spam-Score: -1.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: kI+clFlQC9DX On 16/03/2021 19:35, Ihor Radchenko wrote: > > I am testing the new regexp for a few days now. Because the regexp is > quite complex and because font-lock apparently fontifies even invisible > (folded) text, loading time on large org files with many links became > noticeably longer. Though it was 7.2Mb file with ~13k links in it. I could not guess how to benchmark font-lock. I have tried to open file (to get everything loaded), kill the buffer, emacsclient --eval '(progn (setq my-start (float-time)) (find-file "file.org") (- (float-time) my-start))' 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. Are changes in white spaces below actually modified lines in your patch intended?