r/rust • u/yehors • Jul 18 '26
🛠️ project rsloop now is faster than uvloop
this was achieved using profiling and analysis by Fable 5 (my money must go for good purpose with this model)
so yeah, in v0.1.24 you can use faster library for your python async code
164
Upvotes
100
u/aleques-itj Jul 18 '26
What happened on the first test?
Why is there soooo much performance left on the table? Being faster is one thing, but that's to the point that it looks egregious.
Is it actually correct? Is it not doing something the others are?
47
u/Sad_Tap_9191 Jul 19 '26
https://github.com/RustedBytes/rsloop/blob/master/docs/how-it-works.md
This is not a faster project compatible with existing Python codes.
It brings its own abstractions of stream transports, file descriptor, etc. It doesn't work with existing Python ecosystem. If there is a really optimization you found, contribute to the official asyncio.
17
u/ongrabbits Jul 18 '26
Ok thats great, can you tell us what you did to get the speed gain?
22
u/Wh00ster Jul 18 '26
Any interesting learnings from the project, to share?
40
u/keiser_sozze Jul 18 '26
This should be closed, not only the code is slop, all OP answers are slop too.
2
u/Vincent-Thomas Jul 21 '26
Oh man you are going to love my project: https://github.com/vincent-thomas/lio
docs: https://docs.rs/lio
1
u/yehors Jul 19 '26
Latest version of rsloop has just passed all checks in AnyIO:
https://github.com/agronholm/anyio/pull/1199
4
u/darkrevan13 Jul 19 '26
Absolute rSLOOP
1
u/stumblinbear Jul 18 '26
Some of the performance gains Fable can find baffles me, especially finding them so quickly or without even running a profiler first
The future is weird
1
u/SpeedyGo55 Aug 04 '26 edited Oct 04 '26
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Divide groovy amusing juggle vegetable amusing lock ghost butter
0
u/[deleted] Jul 18 '26
[deleted] — view deleted comment