Just a thought, you could write all the items in the list to a map, then recreate the list from the map. A map will only allow unique keys, you could use anything as data and ignore it when recreating your list. I don't know if it will be quicker than comparing all the items, especially if you can't sort them.