httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject RE: request_rec change inside ifdef APACHE_XLATE (?)
Date Tue, 16 May 2000 13:14:47 GMT
> From: Greg Stein []
> Sent: Tuesday, May 16, 2000 3:37 AM
> There is very little reason to use bitfields in this 
> structure. This is a
> runtime structure, allocated once per request. All the 
> bitfields will do
> is to bungle up your code (admittedly, a little bit) later on when you
> get/set the values.
> IMO, bitfields are useful only when you are trying to *really* be
> conservative about your memory usage. Even then, I might tend to use
> bitmasks.

Agreed to your point in this case.  But taking the example of a set of
flags that have many instances (ergo - need memory conservation), can't
we assume any compiler worth it's salt is playing a machine optimized
bit flag game that is most appropriate to that cpu?

Sometimes ya just gotta presume that the compiler knows its cpu better
than we (cross platform app) would.

View raw message