We already explicitly save the value of $@ - local()ization is not needed
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 4 Jul 2013 05:06:06 +0000 (07:06 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 4 Jul 2013 06:22:53 +0000 (08:22 +0200)
commit2b0d579d80e5316f00183930df181ea36f80e517
tree219e00525c2170823a99e64cce5e0d6643b5e2b3
parentaaf0d61f7adfda3b06885f9db74de908a7f0cd49
We already explicitly save the value of $@ - local()ization is not needed

511c05cae introduced an extension to try{} - unlike in an eval{} a try{}
block has access to the previous value of $@. Since we already have a copy,
we can do a manual restore of $@ instead of the expensive local() mechanism.

Results in a 7% speedup of bare try{} on 5.16
Changes
MANIFEST.SKIP
lib/Try/Tiny.pm
maint/bench.pl [new file with mode: 0644]