[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev coding style, ifdefs

From: Vlad Harchev
Subject: Re: lynx-dev coding style, ifdefs
Date: Sun, 17 Oct 1999 13:00:48 +0500 (SAMST)

On Sat, 16 Oct 1999, Leonid Pauzner wrote:

> 16-Oct-99 12:40 Vlad Harchev wrote:
> >>               foo(2);
> >>           };
> >  Nice thing! I forgot about this. But from performance reasons, your variant
> > is slightly worse (since compilers optimize in basic blocks, if NO_BAR is
> > defined, extra basic block will be created, that will increase code size,
> > execution time). Of course, gcc is smart to optimize accross basic blocks, 
> > but
> > anyway it gives worse code even on gcc I believe.
> Inadequate thing: you save few [nano]seconds of compilation time
> but spend hours in reading/writing to/from lynx-dev
> and assume everyone want follow that way.

  Of course compilation time is not important, execution time is.
  OK, let's create more basic blocks as the cost for readability.

 Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]