nv-bluetooth
nv-bluetooth copied to clipboard
Performance improvements
Hello! I ran into some performance problems in your otherwise fantastic library, and decided to look into them.
Here's an image of a method trace of the standard 1.8 version of your library, running on a Nexus 5X device, with nv-bluetooth highlighted with blue. Around 99% of the CPU time for the library is used for UUIDCreator's use of String.parse.
Here's an image after the changes.
Other changes include minor semantic changes suggested by Android Studio Lint.