NordicPlayground / nRF51-ble-bcast-mesh

Other
323 stars 121 forks source link

consider storing i_relative as log2(i_relative) to save 3 bytes per trickle #185

Open dholth opened 7 years ago

dholth commented 7 years ago

It looks like in this implementation i_relative is always i_min * (1 << (log2(i_relative)). That should make it possible to save a little space by storing only the number of doublings as a uint8_t.