[ gpsdrive ] WITH_MYDEBUG
Hamish
hamish_b at yahoo.com
Thu Jan 15 11:36:54 AKST 2009
schrieb info at 4x4falcon.com:
> I am not uploading them at the moment as there appears to be consensus
> for a new release.
go! go! go!
> The MYDEBUG removes all the:
> if (mydebug > ...
> code.
>
> This helps make the program more responsive (particularly to
> touchscreen/mouse clicks) and reduces the binary file by 30k (with
> MYDEBUG off).
I am not so sure that this will actually make any noticeable difference
to anything beyond initial load time (time to read the binary from the
disk). Do you notice it to be more responsive or "in theory"?
Once it is read from disk it will be held in memory where the extra seek
time from a bigger binary is near 0.
as long as mydebug is set at 0 or lower,
if( (int)mydebug > const int ) or if(mydebug)
always tests as false, and so the added overhead is simply the if()
statement comparison of two ints. and that takes hardly any cpu
instructions to complete. maybe that would matter in the middle of
nested for loops, but gpsdrive doesn't really use those.
?
Hamish
More information about the GPSdrive
mailing list