felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.81k stars 590 forks source link

Removed unneccesary classes and made a memory and cpu optimization #210

Closed Arneball closed 5 years ago

Arneball commented 5 years ago

After this commit, vendor-product-tuples are stored as longs internally. This way heap size is conserved and specialized classes are omitted.

This might not be a big deal desktop applications, but for Android, every bit counts.

The public api is unchanged

Added test to verify that things did not break

felHR85 commented 5 years ago

Hi @Arneball Thank you very much for this PR! Looks real cool. I will check it out next weekend