develooper Front page | perl.perl5.porters | Postings from March 2000

RE: [PATCH 5.6.0-RC1] more warnings tidy ups

From:
Marquess,P,Paul,NEL38 R
Date:
March 16, 2000 10:40
Subject:
RE: [PATCH 5.6.0-RC1] more warnings tidy ups
Message ID:
5104D4DBC598D211B5FE0000F8FE7EB2067FE5B4@mbtlipnt02.btlabs.bt.co.uk
From: Tim Bunce [mailto:Tim.Bunce@ig.co.uk]
 
...
> I have a vague memory that using the warnings pramga will make the code
> use slightly more memory. It that still true (was it ever) and, if so,
> what kind of typical percentage overhead is there?

The overhead is still there but I've gone to lengths to minimise the impact.

The cases below and the case where the pragma hasn't been used at all will
add 4 bytes per line of code.

    use warnings ;
    use warnings 'all';
    no warnings ;
    no warnings 'all' ;

Any other variations on the use of the pragma will add about 13 bytes per
line.

Paul



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About