I have a list of tuples (example below) and need to find the index of an item. At present I am using list.index() but given the size of dataset and frequency of use its proving slow. Is there a more efficient solution?
Dataset example: The data I am using is a tuple of locations
[(21, 31, 30), (20, 30, 29), (20, 30, 31), (20, 30, 30)......]
Thank you