Tuple vs List

Tuples are arrays, while lists are linked lists (so there’s more pointers to follow). In your case the list is tiny, and the elements probably end up contiguous in memory, so the performance difference is negligible.

1 Like