I have 2 data sets
String[] wordsArray;
Queue<String> wordsQueue;
They store the same data, around 500 strings each, 1-3 words per string. I need to save one of them to SharedPreference
. What is the best (fastest) way to do it?
Now I just use
Set<String> mySet = new HashSet<String>(wordsQueue);
edit.putStringSet("Words", mySet);
But it works slower than I want.