From fc3f50ce1e610b9b4ddfcac0f7a2518cd29a5e06 Mon Sep 17 00:00:00 2001 From: Matthew Horsfall Date: Wed, 2 Apr 2014 12:02:53 -0400 Subject: [PATCH] Missed perldelta for 437e3a7 (for v5.19.8) --- pod/perl5198delta.pod | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pod/perl5198delta.pod b/pod/perl5198delta.pod index 6c6789d..d32a743 100644 --- a/pod/perl5198delta.pod +++ b/pod/perl5198delta.pod @@ -84,6 +84,27 @@ as an updated module in the L section. =back +=head1 Performance Enhancements + +=over 4 + +=item * + +In certain situations, when C is the last statement in a subroutine's +main scope, it will be optimized out. This means code like: + + sub baz { return $cat; } + +will now behave like: + + sub baz { $cat; } + +which is notably faster. + +[perl #120765] + +=back + =head1 Modules and Pragmata =head2 New Modules and Pragmata -- 2.7.4