From 617171194aaf277e9a9558c478a174b483d6d85e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 21 Oct 2010 00:17:28 -0500 Subject: and, memoize making the compiler --- lib/Eval/Closure.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Eval') diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index aa0777d..c563dc3 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -8,6 +8,7 @@ use Sub::Exporter -setup => { use Carp; use overload (); +use Memoize; use Scalar::Util qw(reftype); use Try::Tiny; @@ -104,6 +105,7 @@ sub _make_compiler { my $e = $@; return ($compiler, $e); } +memoize('_make_compiler'); sub _make_compiler_source { my ($source, @capture_keys) = @_; -- cgit v1.2.3-54-g00ecf