From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A4A9F1FD5C for ; Sat, 25 Jan 2020 04:45:13 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 15/22] linkify: compile $LINK_RE once Date: Sat, 25 Jan 2020 04:45:03 +0000 Message-Id: <20200125044510.13769-16-e@yhbt.net> In-Reply-To: <20200125044510.13769-1-e@yhbt.net> References: <20200125044510.13769-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This gives a 3-4% performance improvement in xt/perf-msgview.t with a mirror of https://public-inbox.org/meta/ --- lib/PublicInbox/Linkify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index af9be3ff..77b94f56 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -70,7 +70,7 @@ sub linkify_1 { $_[0]->{$key} = $url; $beg . 'PI-LINK-'. $key . $end; - ^ge; + ^geo; $_[1]; }