nv-bluetooth icon indicating copy to clipboard operation
nv-bluetooth copied to clipboard

Performance improvements

Open SamiPatanen opened this issue 7 years ago • 0 comments

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. first

Here's an image after the changes. fourth

Other changes include minor semantic changes suggested by Android Studio Lint.

SamiPatanen avatar Aug 30 '17 15:08 SamiPatanen