diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-10-21 00:17:28 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-10-21 00:17:28 -0500 |
commit | 617171194aaf277e9a9558c478a174b483d6d85e (patch) | |
tree | f5a998e2dd770e4d167ac97f700526f571dceacf | |
parent | 447800b5183d24c554ebb448684d3604925a1a9f (diff) | |
download | eval-closure-617171194aaf277e9a9558c478a174b483d6d85e.tar.gz eval-closure-617171194aaf277e9a9558c478a174b483d6d85e.zip |
and, memoize making the compiler
-rw-r--r-- | lib/Eval/Closure.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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) = @_; |