I want to create a service in android (Nougat/Pie version) which needs to store lots of data in terms of <Key, Value> pairs. I have different APIs which update, add, delete and get the values from <Key, Value>. Now I have two choices between
- android::DefaultKeyedVector<key,value> [https://android.googlesource.com/platform/frameworks/native/+/jb-dev/include/utils/KeyedVector.h]
- std::map<key,value> [C++ Standard Template Library].
Can anybody help me with which one should I choose for better performance? Has anyone done the benchmark between the two methods?