From f09b01e0e89dbdf0f0bd6bfae2f8545fa17657d2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Jan 2020 04:45:03 +0000 Subject: linkify: compile $LINK_RE once 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]; } -- cgit v1.2.3-24-ge0c7