LiamBindle / MQTT-C

A portable MQTT C client for embedded systems and PCs alike.
https://liambindle.ca/MQTT-C
MIT License
766 stars 269 forks source link

swap use of double variables to float #162

Closed perigoso closed 2 years ago

perigoso commented 2 years ago

doubles are computationally expensive and most embbeded devices don't have hardware for such computations hurting performance and size, we should use floats

realistically, the only place using double is the average time, which doesn't need that kind of precision anyway?

LiamBindle commented 2 years ago

Good call! Thanks for raising this.