From: Vincent Pit Date: Sat, 4 Oct 2014 23:00:31 +0000 (+0200) Subject: Warn about the global slowdown X-Git-Tag: v0.13~3 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=755d99cef7468713b3fc1ac914b4649fe73b594c Warn about the global slowdown --- diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index 518e205..bc72829 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -265,6 +265,8 @@ This will always be true except on Windows where it's false for perl 5.10.0 and =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 - which may become noticeable if you rely heavily on numerous calls to C. + The restrictions on the type (being either a defined package name or a constant) apply even if you use the C<'as'> option to redirect to another package, and are unlikely to find a workaround as this happens deep inside the lexer - far from the reach of an extension. Only one mangler or prefix can be in use at the same time in a given scope.