develooper Front page | perl.perl5.porters | Postings from July 2001

RE: [ID 20010703.002] [5.6.2-to-be] PerlIO is EVIL

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
July 6, 2001 07:39
Subject:
RE: [ID 20010703.002] [5.6.2-to-be] PerlIO is EVIL
Message ID:
Pine.SOL.4.10.10107061036250.5866-100000@maxwell.phys.lafayette.edu
On Fri, 6 Jul 2001, Konovalov, Vadim Vladimirovich (Vadim) wrote:

> > >Additionally, there are several places where local temporary 
> > variables assigned just to make further assignment less verbose. 
> > >("buf" in PerlIOStdio_read function is an example).

So?  What's wrong with being less verbose?  Clarity counts too,
though obviously different authors have different views of
clarity.

> Okay. 
> Here is a tiny-optimization patch. Although patch is obvious, I checked for perl to pass tests after applying it.

[ patch snipped ]

This is rather pointless since any decent optimizer ought to do the same
for you anyway.  I checked.  Both gcc and Sun's cc produced identical code
for the two versions.

If you think the changed code is somehow "cleaner", that's fine and not
worth arguing about.

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042


Thread Previous | Thread Next


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