From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add compiled regexp primitive lisp object Date: Sun, 22 Dec 2024 21:24:59 +0200 Message-ID: <86cyhj5xmc.fsf@gnu.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, mattiase@acm.org, arstoffel@gmail.com, eller.helmut@gmail.com, dmcc2@hypnicjerk.ai, pipcet@protonmail.com, emacs-devel@gnu.org, mattiase@acm.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 Sun Dec 22 20:25:49 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 1tPRaG-00063y-QE for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Dec 2024 20:25:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPRZc-0005W7-IP; Sun, 22 Dec 2024 14:25:10 -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 1tPRZZ-0005Vy-R6 for emacs-devel@gnu.org; Sun, 22 Dec 2024 14:25:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPRZX-0000N3-0S; Sun, 22 Dec 2024 14:25:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZsgJTNHSFLuvMp3bP4M2R95KbTWHsJ1BZM04gBlHjrk=; b=NsuygJBQ08lD b2+HkmGz3BAr/v3VKblmYQXyf5qyXfdxnXqOZ/5X6LDeA1Yp+29RYh80hSMcI82cP+2W0S7Jd/gI7 fwcDKQ1beafGDz0+/kBzNDh6rIlaxJGhZPlocQhUz9m2cSZ4WQsMFw//B/6ppjkZPMz+gSlUgW4Cv LDtwFLKAJC+0mAhhCjA07ruCZhSSGd8yu20/wFlnfgQ4J9wW/O2295m3BEp5ZnJS0E8wcA0UssG8n iVuXuLjveXlIN+xrQa+clVrlgHW24XdpqnSW23kxN8uSVFwYJlfmMQiakfg00PQB5cq/NHFR84EA/ R6uVCSCMvf+Hs2iSZ5p4DA==; In-Reply-To: <87a5cn7cnu.fsf@localhost> (message from Ihor Radchenko on Sun, 22 Dec 2024 19:14:45 +0000) 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:326881 Archived-At: > From: Ihor Radchenko > Cc: Augusto Stoffel , Helmut Eller > , Eli Zaretskii , Danny McClanahan > , pipcet@protonmail.com, emacs-devel@gnu.org, > mattiase@acm.org, acorallo@gnu.org, stefankangas@gmail.com > Date: Sun, 22 Dec 2024 19:14:45 +0000 > > 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? That bug has a lot of numbers, but I couldn't find any numbers for the percentage of time take by re_compile_pattern and friends. So I guess your conclusion above was based on indirect evidence and/or estimations/hunches?