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?
Published at
2023-05-10 14:52:22Event JSON
{
"id": "4a50c35d8b99a31350a647d81235356ccd4c6facd2f51641a3225ff06e108f38",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1683730342,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"mostr",
"https://hachyderm.io/users/nedbat/statuses/110344951708980970"
]
],
"content": "It's painful to see people writing to explain #Python, but with misleading/wrong things like:\n\n\u003e Traversing a tuple is more efficient than traversing a list. \n\u003e The performance of a tuple in this case is at least 10 percent better than a list.\n\n1) The iteration mechanisms are identical.\n2) They experimented on 13-element collections: far too little data to care about.\n3) The times were nanoseconds, which don't matter in any real program, so why even bother?",
"sig": "5b61d67bce9dc03b1c2116d05674f4e0a53f029ceb1af89340bb1774e853d6eaba34c9a85d6d104810fc4a353fea2629507d15fdd72e5320eea50949f0015592"
}