[Xastir-Dev] does it make sense to start killing globals?
Alan Crosswell
alan at columbia.edu
Wed Jul 2 13:00:25 EDT 2003
Depends on where in the code. If the variable is checked a million times
because it's in the middle of rendering map vectors then there can be a problem.
Again, these can be smartly coded ala len=strlen(foo); and use len, instead of
calling strlen over and over....
/a
Curt Mills, WE7U wrote:
> On Wed, 2 Jul 2003, Alan Crosswell wrote:
>
>
>>I respectfully disagree. I'm a old timer who still remembers that there's
>>hardware under them there lines of code. Invoking a C function to get the value
>>of such a simple thing as scale_x seems like a lot of overkill. In a real OOL,
>>of course these simple things are optimized out by the compiler, but not by cc.
>
>
> Do you think that we'll see enough of a speed penalty here to
> warrant leaving them alone?
>
More information about the Xastir-dev
mailing list