Team-Harmony-Dev / LiveColor

LiveColor is an Android app project that aims to provide a clean and practical color-picking experience for on the go. This app stems from a quarter-long project for the CSE115a software design class at UCSC.
https://team-harmony-dev.github.io/LiveColor_Website/
Other
1 stars 1 forks source link

Color name efficiency #76

Closed DustinSeltz closed 4 years ago

DustinSeltz commented 4 years ago

Dragging on the image is much slower than without the color names. Iterating over 25000+ colors multiple times per second is slow. Possible solutions: Caching. This could also improve the speed of telling if a color is in the database, but that doesn't seem to have speed issues currently. Minor code efficiency improvements, like maybe directly storing an RGB color would be better than converting from a hex string 25000 times. Improvements to algorithm?