Ned Batchelder on Nostr: It's painful to see people writing to explain #Python, but with misleading/wrong ...
It's painful to see people writing to explain #Python, but with misleading/wrong things like:
> Traversing a tuple is more efficient than traversing a list.
> The performance of a tuple in this case is at least 10 percent better than a list.
1) The iteration mechanisms are identical.
2) They experimented on 13-element collections: far too little data to care about.
3) The times were nanoseconds, which don't matter in any real program, so why even bother?
> Traversing a tuple is more efficient than traversing a list.
> The performance of a tuple in this case is at least 10 percent better than a list.
1) The iteration mechanisms are identical.
2) They experimented on 13-element collections: far too little data to care about.
3) The times were nanoseconds, which don't matter in any real program, so why even bother?