harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@apache.org>
Subject Re: opinions on structure packing in C?
Date Wed, 05 Oct 2005 18:32:14 GMT

On Oct 5, 2005, at 9:04 AM, Robin Garner wrote:

>> So how do people deal with this these days?  I know fashions change,
>> and I haven't done C in anger for > 6 years...  (I still have the
>> shakes when looking at it - I'm past the screaming stage...)
> "Premature optimization is the root of all evil."
> If struct packing produces a measurable speedup, do it; if not, don't.
> But actually take the time to measure it.

I wasn't clear, I guess.  I'm not optimizing.  I'm looking at code  
that already does this through global pack-struct flag for the  
compiler, and I needed to get away from that w/o doing a rewrite.


Geir Magnusson Jr                                  +1-203-665-6437

View raw message