According to this slide from Supercharging Perl - Daina Pettit,

It reads,
Avoid versions of
perlcompiled with threading orDDEBUGGINGunless you know you need them.
I know most distros compile Perl with threading, but my Perl on Debian (as observed with perl -V_ is compiled with -DDEBUGGING=-g does this slow it down?
Perl with debugging enabled is slower.,
Note that a perl built with
-DDEBUGGINGwill be much bigger and will run much, much more slowly than a standard perl.
However, -DDEBUGGING=-g does not enable debugging:
As a convenience, debugging code (
-DDEBUGGING) and debugging symbols (-g) can be enabled jointly or separately using a Configure switch, also (somewhat confusingly) named-DDEBUGGING. For a more eye appealing call,-DEBUGGINGis defined to be an alias for-DDEBUGGING. For both, the-Ucalls are also supported, in order to be able to overrule the hints or Policy.sh settings.
and also documented:
Configure
-DEBUGGING=-gAdds
-gto optimize, but does not set-DDEBUGGING. (Note: Your system may actually require something likecc -g2. Check your man pages for cc(1) and also any hint file for your system.)
You can test status with: perl -D, if you see the following you do not have -DDEBUGGING,
Recompile perl with
-DDEBUGGINGto use-Dswitch (did you mean -d ?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With