Shenzi Thinker Abouter on Nostr: Async isn't just for the datacenter. Consider the case of a raspberry pi 3. loading ...
Async isn't just for the datacenter. Consider the case of a raspberry pi 3. loading that thing up with threads is going to bog it down and lead to bad performance. keeping just a couple threads with tasks scheduled across them is a much better use of resources
That's the primary reason why I got into async programming in the first place. My infrastructure has always been single-board computers, and single-board computers have always had low amounts of RAM and slower CPUs than your average computer.
#rust #rustlang #async
Published at
2024-01-25 17:07:14Event JSON
{
"id": "813e9ef9292ee7edc5930aa27370a748635249453ccf47ee7b947049cfac4880",
"pubkey": "520c7432804749d34bda3f35caf8b994fc5969eee7be5c8714486c1cc43442b3",
"created_at": 1706202434,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"t",
"async"
],
[
"proxy",
"https://masto.asonix.dog/users/asonix/statuses/111817682762833351",
"activitypub"
]
],
"content": "Async isn't just for the datacenter. Consider the case of a raspberry pi 3. loading that thing up with threads is going to bog it down and lead to bad performance. keeping just a couple threads with tasks scheduled across them is a much better use of resources\n\nThat's the primary reason why I got into async programming in the first place. My infrastructure has always been single-board computers, and single-board computers have always had low amounts of RAM and slower CPUs than your average computer.\n\n#rust #rustlang #async",
"sig": "e98f5c20e4d5dae540b902f1101fbef63463e66ec4be8b67377f1034e1fe07ce11e158f7d9699aefdecacce3dc23b03a432db1d25f4bdd210030d325616ca4f2"
}