ErickSimoes / Ultrasonic

Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino
MIT License
137 stars 65 forks source link

Consider suspending the use of classes and adopting structures #4

Closed ErickSimoes closed 7 years ago

ErickSimoes commented 7 years ago

Classes are useful, but their performance is less than using structs (given due proportions). Therefore, it may be interesting to adopt the use of structs where classes are used today. Considering that one of the objectives of this library is to be minimal and optimized, consuming as few resources as possible.