From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#63225: Compiling regexp patterns (and REGEXP_CACHE_SIZE in search.c) Date: Wed, 03 May 2023 16:02:52 +0000 Message-ID: <87o7n1v1w3.fsf@localhost> References: <63882A45-BD02-40D5-92FA-70175267BA3B@acm.org> <874jou7lsf.fsf@localhost> <37EED5F9-F1FE-46B6-B4FA-0B268B945123@gmail.com> <87wn1qqvj0.fsf@localhost> <34F4849A-CB39-4C96-9CC1-11ED723706DA@gmail.com> <87wn1psqny.fsf@localhost> <6DAF37F9-B236-4C33-8E30-0FCA47CCBCC5@gmail.com> <87zg6lfobh.fsf@localhost> <281B22C2-CD69-4495-A97C-E754446CA9A6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63225@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 03 18:01:39 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1puEvC-0006Mu-6u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 May 2023 18:01:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puEtj-0004OF-Pr; Wed, 03 May 2023 12:00:07 -0400 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 1puEtf-0004Nq-4W for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 12:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puEte-0000ZD-M3 for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 12:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puEte-0000Kq-4k for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 May 2023 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63225 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63225-submit@debbugs.gnu.org id=B63225.16831295981244 (code B ref 63225); Wed, 03 May 2023 16:00:02 +0000 Original-Received: (at 63225) by debbugs.gnu.org; 3 May 2023 15:59:58 +0000 Original-Received: from localhost ([127.0.0.1]:47560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puEtZ-0000Jy-LC for submit@debbugs.gnu.org; Wed, 03 May 2023 11:59:57 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:33779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puEtW-0000Jk-OF for 63225@debbugs.gnu.org; Wed, 03 May 2023 11:59:56 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6868A2403E6 for <63225@debbugs.gnu.org>; Wed, 3 May 2023 17:59:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683129588; bh=wSt2/Aly3R+qlhAnVKWEYEckiIGOfFV6VRunrJj53PU=; h=From:To:Cc:Subject:Date:From; b=EXCQbv9Wa9fy+6g5G6iDVeDEH+WzWxhIhTkKXYwQ3icZgf/R3NLkZQCLmqD4mqDu3 5uA6JYUmmkLCUdpn7ZqNgtoROjWIYW4UkzSKRiN3/z+GKLKtiok9qkqQNRLbrmr9Zv 10GnJVhOVM/+JdI22MSQ533kgMpulriP/OT65+CK7CaCOvV7899FNbbhoGFxAOux6N BdBceWWZGzrYrJ622FysnonFkhTp75QPNAdB7Rcg06hj96wXCwPvRh32IJBX3f4aLN pFuk9i23hgeh6lzfYD4hhPUO3RVNCX/EDljkvkhP1uDkHdC3XwxPB94174A4ueYAjo iCuB7xcJalcAQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QBM8d0qDwz9rxG; Wed, 3 May 2023 17:59:45 +0200 (CEST) In-Reply-To: <281B22C2-CD69-4495-A97C-E754446CA9A6@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260984 Archived-At: Mattias Engdeg=C3=A5rd writes: > Maybe you should instrument the regexp engine and log the pattern and whe= ther compilation was needed to a file. Run on a reduced dataset, and see if= the sequence of regexps being exercised, and their frequencies, are consis= tent with what you expect. Sorry, but I am starting to lose track of the purpose here. What is the aim of instrumenting regexp engine in this scenario? I already know that additional regexps will be tested by individual `org-element-X-parser' functions. I am also not sure how to instrument the regexp engine and what I can see there. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at