Mo :ferris: :tux: @ FOSDEM on Nostr: Today I learned: It only takes about 35µs to spawn a thread in #RustLang (on my ...
Today I learned: It only takes about 35µs to spawn a thread in #RustLang (on my machine) 🚀
Might help you to decide whether you should run something in parallel or not ⚙️
Of course, this is not the whole overhead. You might need some kind of synchronization etc.
Published at
2024-08-01 14:19:34Event JSON
{
"id": "7ab930c35ef11b702af977c56a0a77d0e1515d7d09d4fbcc1b3679502b5d3628",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1722521974,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/112887200145947805",
"activitypub"
]
],
"content": "Today I learned: It only takes about 35µs to spawn a thread in #RustLang (on my machine) 🚀\n\nMight help you to decide whether you should run something in parallel or not ⚙️\n\nOf course, this is not the whole overhead. You might need some kind of synchronization etc.",
"sig": "f5708d086db1204c0aa4dc6c2659af8bcf1a4844d42aec52f0166e2397aae365e7b0084e6ce660c8d980d080b613b18a497e699ab03b7a2f2839f96d30cf6d68"
}