From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#63225: Compiling regexp patterns (and REGEXP_CACHE_SIZE in search.c) Date: Mon, 8 May 2023 21:32:37 +0200 Message-ID: <1473BC99-6A16-482F-B77E-0E7B25B4844E@gmail.com> 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> <87o7n1v1w3.fsf@localhost> <878E8D66-A548-42E6-B077-6068A8B131D8@gmail.com> <87ednvul22.fsf@localhost> <87h6sn9bb1.fsf@localhost> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63225@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 08 21:33:18 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 1pw6bl-0004pY-Vy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 21:33:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw6bY-0006Mu-Ei; Mon, 08 May 2023 15:33:04 -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 1pw6bW-0006MC-Li for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:33:02 -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 1pw6bW-0000YW-Dm for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pw6bW-0004aW-94 for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 May 2023 19:33: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.168357436717615 (code B ref 63225); Mon, 08 May 2023 19:33:02 +0000 Original-Received: (at 63225) by debbugs.gnu.org; 8 May 2023 19:32:47 +0000 Original-Received: from localhost ([127.0.0.1]:41687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw6bG-0004a2-UJ for submit@debbugs.gnu.org; Mon, 08 May 2023 15:32:47 -0400 Original-Received: from mail-lf1-f46.google.com ([209.85.167.46]:45208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw6bF-0004Zn-I5 for 63225@debbugs.gnu.org; Mon, 08 May 2023 15:32:46 -0400 Original-Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-4ecb137af7eso5601055e87.2 for <63225@debbugs.gnu.org>; Mon, 08 May 2023 12:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683574359; x=1686166359; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=g36BUA8pw/XNwF6Jf8u9IUwnqKBXHHW2IxMefdACuv0=; b=e9nZmU3fQzr5Gcm+X3NWwnix1AmEToeN6p9SSJW9GPpdgv7kklb+8iMJ3AdZqQ6l3x rCiIXmCRxNVGUCjDAd4Ehn9bomjpRe5ze2M36smqf6qXBja+fjIJX5RoUuK8dNtzLR2D FXfjQoL1LhgSBVeqRygdCjgqbJYonaKDCzY4t3Eyw/2NUSWax66QxYhYw28jRO6H0r7f Ds4uKttPZwCPjfJQ4sicbiZdNlfPOHji+Z/xwGELQ2l56JJExgpXJ08D2kIGORsy/Ml0 hQcnaZUBUdct2ahqR/vfoDVNPU8UJY2EtgG+MXwsC2Vk67lrp42uvKIVEg3jx0zw401b /Y0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683574359; x=1686166359; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=g36BUA8pw/XNwF6Jf8u9IUwnqKBXHHW2IxMefdACuv0=; b=OLzJRcA6TyopmFUvEXWVKXoROmf+x/zP9RxJ5XVIpbjDknaq6c8F3ndSDDhEU3U27S cTxr8nBAXXU+QqjN4/bqrLBmVe7V3ZJuCW8O6RVyXxtHj1X3IlJr0oNVTIskvxYmauOW R++GCc+/ROaTFbuc1gB+a3WsX3Dl3q3q+i0lmgvwNtgGkzMup9QpgZIaLTwrJ3+UQBUg 0qyIV0jOjqmmXgmax0MT5ouAhOvx9mxu8mhM301OQY5hVG4KVqTZZGhDnO7XwCeDtPk9 33AhMRZKqP+YdAL78l/BbDdpUHelifYJARlacUtu/f6fN/uhzghAM1if428XKtHu5u8w K2jQ== X-Gm-Message-State: AC+VfDydc7Fsv2ylVqw2/ZPEFFVOb50DgGOTch3SiqniouXAyO7lgDq9 68yI5Glbrq5iJy4KZG9ev7s= X-Google-Smtp-Source: ACHHUZ5xAuZTttY4NBkGnM6mmGlVxfg+jOjobjN8lIDU8NTU++ntWVA8H8rqHL6AtsqIH2+d2VrM7A== X-Received: by 2002:a2e:8182:0:b0:2ac:80f6:544a with SMTP id e2-20020a2e8182000000b002ac80f6544amr54667ljg.24.1683574359399; Mon, 08 May 2023 12:32:39 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id r9-20020a2e94c9000000b002ad9f224bfasm21021ljh.51.2023.05.08.12.32.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2023 12:32:38 -0700 (PDT) In-Reply-To: <87h6sn9bb1.fsf@localhost> X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:261359 Archived-At: 8 maj 2023 kl. 15.56 skrev Ihor Radchenko : > I am not sure what I can make out of hits/misses, but I am at least = able > to look into frequency data, via sort re.log | uniq -c > re-freq.log I'm mostly curious about the regexp cache behaviour. What cache size did = you use in this run? Hardly 20, given the low miss rate? It would be interesting to see what = sequence of regexps most commonly cause thrashing. > It would be even nicer if apart from frequency, there was information > about time taken to search for each regexp. That's a bit messier but could be done if really needed.