/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Unexpected productivity boost of Rust
(lubeno.dev)
517 points
bkolobara
| 1 comments |
27 Aug 25 15:48 UTC
|
HN request time: 0.256s
|
source
Show context
dvt
◴[
27 Aug 25 18:40 UTC
]
No.
45043355
[source]
▶
>>45041286 (OP)
#
Using sync locks in an async environment is a code smell, so the Rust code is bad right off the bat. Just stick with async locks and take the tiny performance hit unless you know exactly what you're doing.
replies(2):
>>45043377
#
>>45052531
#
1.
bkolobara
◴[
28 Aug 25 14:23 UTC
]
No.
45052531
[source]
▶
>>45043355
#
I didn't need to hold the lock across the .await point and in that case the official docs recommend a regular lock.
ID:
GO
↑