From 610e10032fd9297fedd930f5bae6a3d976d6a623 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Sat, 21 May 2022 17:24:43 -0400 Subject: [PATCH] perldoc: add performance enhancement note about #19414 --- pod/perldelta.pod | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 77c16f39bfee..d267e996a1fa 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -377,6 +377,20 @@ This B cause slightly increased memory usage for programs that create same keys. But generally our testing suggests that for the specific cases described it is a win, and other code is unaffected. +=item * + +In certain scenarios, creation of new scalars is now noticeably faster. + +For example, the following code is now executing ~30% faster: + + $str = "A" x 64; + for (0..1_000_000) { + @svs = split //, $str + } + +(You can read more about this one in L<[perl +#19414]|https://github.com/Perl/perl5/pull/19414>.) + =back =head1 Modules and Pragmata