Itamar Turner-Trauring on Nostr: Another example of why you want to optimize your code before switching to parallel ...
Published at
2024-05-30 15:23:49Event JSON
{
"id": "a654bef4a8ea03e55b7b85800d5968cf74eccc425bf69456241c507336cb05a1",
"pubkey": "fc6f873f819068577e57a7e99f3f825e465b64545d5ba633faa79d5e68f4efd3",
"created_at": 1717082629,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/users/itamarst/statuses/112530727208238688",
"activitypub"
]
],
"content": "Another example of why you want to optimize your code before switching to parallel execution: an image processing algorithm where I get a 15× speedup by replacing generic APIs with specialized datastructures that allow reducing repetitive execution.\n\nhttps://pythonspeed.com/articles/lets-optimize-median-local-threshold/\n\n#python",
"sig": "f6dca3189d6627a610f8ed1f22b1cde246c1e5483bd8150b4542dcf813eeb1a35b94239d798daf711a8791534ee5d7ec69195bee0006010d0f003f3a3ef23bba"
}