Chris Siebenmann on Nostr: This is my face when I realize that on a big multi-core machine, I want to do 'sed ...
This is my face when I realize that on a big multi-core machine, I want to do 'sed ... | sed ... | sed ...' instead of the nominally more efficient 'sed -e ... -e ... -e ...' because sed is single-threaded and if I have several costly patterns, multiple seds will parallelize them across those multiple cores.
Published at
2024-03-06 22:19:35Event JSON
{
"id": "ce3935d457854514c413646a469c64a2293e647ac267a92857a4cf44788faf6b",
"pubkey": "d22d3e7a3748f64d667c85f6bc02a4e12d1dfdfdcf5b6f2654bf42e847797112",
"created_at": 1709763575,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/cks/statuses/112051065669048777",
"activitypub"
]
],
"content": "This is my face when I realize that on a big multi-core machine, I want to do 'sed ... | sed ... | sed ...' instead of the nominally more efficient 'sed -e ... -e ... -e ...' because sed is single-threaded and if I have several costly patterns, multiple seds will parallelize them across those multiple cores.",
"sig": "d37aa7f783bf47f195b1cb6843c552f75d7549848409a84a268d6dcfa0767f7b88f6d522194dc1c6d24ba356c8e4d75b52ffcb191c609afd5df5926fe8d803f8"
}