gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ✘nmea.lasttag


From: Gary E. Miller
Subject: Re: ✘nmea.lasttag
Date: Tue, 7 Apr 2020 18:31:50 -0700

Yo Fred!

> On Tue, 7 Apr 2020 17:20:42 -0700 (PDT)
> Fred Wright <address@hidden> wrote:
> 
> > > Closer to 64 byes more, but whose counting?  And clearing a 72
> > > byte array is more work than zeroing an integer.    
> > 
> > It's not that hard to make it an array of bits.  And clearing it is
> > just a matter of memset().  If there's any need to test multiple
> > bits at once, then basing it on 32-bit elements instead of 8-bit
> > elements would make it a bit faster, without complicating anything
> > else.  
> 
> Yes, not hard, but I hate to take a 100x performance hit testing all
> the elements, instead of bit testing one integer.
> 
> Turns out, only one bit was ever set, So all that needs to be done is
> save the bit index, not 71 zeros and 1 one.  That should be quick to
> do.

Ugh.  Fooled myself.  nmea.cycle_enders needs to be a bitmask.  Sometime
8 bits are set.  No idea how.

This is gonna take a while...

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpRC4LvmSAT_.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]