httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: Multi-protocol patch, part 1
Date Tue, 17 Apr 2001 21:16:46 GMT
On Tue, Apr 17, 2001 at 01:21:55PM -0400, Bill Stoddard wrote:
> >
> > > However, please note that we can/should simply toss the darned bit fields
> > > from conn_rec, and certainly this one.
> >
> > I seriously disagree with this.  bit fields are incredibly useful, and we
> > should take advantage of them, not dump them.
> >
> 
> FWIW, I am not a fan of bit fields.  They are slower to check and all you get back is
a bit of space
> savings....maybe (if you cram multiple bit fields into an int).

Exactly.

Even worse was the case where I said to toss the bitfield:

  int whatever:1;
  int something_else;

That bitfield isn't very useful :-)

[ but rather moot since the "whatever" isn't even needed; it becomes a local
  variable ]

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message