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?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add compiled regexp primitive lisp object Date: Mon, 23 Dec 2024 15:38:12 +0200 Message-ID: <36450.1531164692$1734961130@news.gmane.org> References: <87mslxxddk.fsf@protonmail.com> <5He97LtsyeyQoTLU7d91oP2CLO8s_2afdgcNxozsFjzu8qGbB_7nXmsZL5O6Ej7K-tuEmngCcPKJpDAjxeKz4jk1DvqSUbdOLpw5U1vo1SY=@hypnicjerk.ai> <87le1avopk.fsf@protonmail.com> <2LOLmIp1X8w4CGbqq3qDrzmKVA0KzYNL1N9lBtWdB-MtEv9oCuYgJMYprG170wMPjYxeQImAmWOPatGTTl4KxZMlptNo9A9hnHt84vdN9EA=@hypnicjerk.ai> <87ttfxtszi.fsf@protonmail.com> <86r0b1o5sr.fsf@gnu.org> <868qx8o83w.fsf@gnu.org> <875xscec62.fsf@gmail.com> <87o764sb6y.fsf@gmail.com> <87a5cn7cnu.fsf@localhost> <86cyhj5xmc.fsf@gnu.org> <87ttavlc50.fsf@localhost> <86a5cn5v1n.fsf@gnu.org> <87r05zlas8.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22270"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, mattiase@acm.org, arstoffel@gmail.com, eller.helmut@gmail.com, dmcc2@hypnicjerk.ai, pipcet@protonmail.com, emacs-devel@gnu.org, acorallo@gnu.org, stefankangas@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 23 14:38:44 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tPidu-0005fZ-O6 for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Dec 2024 14:38:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPidZ-0005n1-TI; Mon, 23 Dec 2024 08:38:22 -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 1tPidW-0005lr-F7 for emacs-devel@gnu.org; Mon, 23 Dec 2024 08:38:18 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPidU-00009Z-UW; Mon, 23 Dec 2024 08:38:18 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id AFE4DD00038; Mon, 23 Dec 2024 15:38:13 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734961094; bh=3AGw9xREdmSm8aV4a4AO+dAhs6pDYDxDBp/oq8aR2pY=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=gAC8E+MiefJHXCgRsfv8U/fXfvzLYEx2ua5MUjpxc47//sTudH99nqluc+RoeAhXX Xj46QlNJtTYQih6Nx+CXtsmPkwYEZjjAxSkYEFkZ71jBFCCX95HZz2/L7FZ3wt2SiS UPz2T4Jla4mp8qt3WyquKt+SGvBY7DgX3RXJ9IUouJs1LnfRIBO2rRg66royZ5GZmZ VMgCLIQOVS9a/dGdFMm5XBdvCTMhNvnwZEmr8Qa/u6O1WGhzHGWO+t+yaUNB7nPm1I VNEPFmcprfInkVpqzibqoGUnd7iB1ctVGXvQrs+bdL+PjntDjLTVh6PIr0IxfFdPFm MYNRwOZalgmB/G9AUW4R8GGOR/Xy5UW2uFiTrop7TV23cC+sz4uKMC5UH5NzbFli1h a1zeTOh1tvJtMFR1EB0T+0o7kgdMYQYyNIYGhNOshVL8TCDrdMcuX9SWrjRxfyypAi E8AT1VHF9zzsOks0RVPZaN5nlhkpuhsSg8nw4Ud+RsLFu1TONdbPvWFxAuBreCjabm Zl3KODVP8JCs3D09Ssv8kXJkacrIXWTilth8wN+40HHbCrqEeDnE4YjdZmKWeVsObD vrqHV4J8Q+AClAfWEvVtU2BsehNIxrSM/SO19ZrEd8J0TG8YdZHsuHWiSfvYZXPT8d FsMsBLwGMNxd0MAAfGz5vRfs= In-Reply-To: <87r05zlas8.fsf@localhost> (Ihor Radchenko's message of "Sun, 22 Dec 2024 20:31:35 +0000") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326905 Archived-At: Ihor Radchenko writes: > Eli Zaretskii writes: > >>> >> See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63225 >>> >> TL;DR: Compiling regexps can take a significant fraction of time when >>> >> parsing Org documents. >>> > >>> > Which fraction? >>> >>> Close to 10%. See the very first message. >> >> That's almost negligible, IMO. > > It is 2 seconds extra in my tests. > Also, it is ~20% of all the time taken by regexp matching. > I would not call it negligible. Also 10% or 20% percent the effect such an improvement becomes more significant the bigger the data is or the slower the computer is Emacs runs on. Org-Mode files can become quite big, other files possibly too.