]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Warn about the global slowdown
authorVincent Pit <vince@profvince.com>
Sat, 4 Oct 2014 16:37:31 +0000 (18:37 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 4 Oct 2014 16:37:31 +0000 (18:37 +0200)
lib/autovivification.pm

index 442f70187a20b4bff4d78c7a755ae73f19862346..f7ddbe711facd13a0e500f5dbc8e58d7cb127a7d 100644 (file)
@@ -200,6 +200,8 @@ This constant will always be true, except on Windows where it is false for perl
 
 =head1 CAVEATS
 
+Using this pragma will cause a slight global slowdown of any subsequent compilation phase that happens anywere in your code - even outside of the scope of use of C<no autovivification> - which may become noticeable if you rely heavily on numerous calls to C<eval STRING>.
+
 The pragma doesn't apply when one dereferences the returned value of an array or hash slice, as in C<< @array[$id]->{member} >> or C<< @hash{$key}->{member} >>.
 This syntax is valid Perl, yet it is discouraged as the slice is here useless since the dereferencing enforces scalar context.
 If warnings are turned on, Perl will complain about one-element slices.