I see this all too often:Code:typedef int Some_Three_Possible_Value_Type
I see this all too often:Code:typedef int Some_Three_Possible_Value_Type
Last edited by BMJ; 10-09-2002 at 03:42 PM.
on a slightly related topic, i think it's much better to waste space than processor cycles. there's no real rhyme or reason to my thinking... it's just like instinct.
Damnit! I missed a potentially offensive/funny(?) picture. I hate this PG-13 stuff. PM it over!
>>on a slightly related topic, i think it's much better to waste space than processor cycles.
Yup. You've got to balance based on many factors but I prefer speed over space. I'm not likely to start allocating massive sized lookup tables up to wallamazoo for a couple of cycles though.
>>So for little stuff, it doesnt matter, but for a large major project, optimizing can be everything.
Oh, I'm well aware of when its a waste. Its just a matter of convincing myself that I can sleep tonight when theres maybe patches of division that could become bitshifting somewhere in my code. I'm trying to get better though! Honest!
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)