Ecosystem: Make !Sync Great Again! #484
Replies: 4 comments 2 replies
-
|
Thank you. But !Sync has never been great, let alone great again. Furthermore, I don't want to be shot at my ears:) Would you provide a list of data structures that you would like to be !Sync? |
Beta Was this translation helpful? Give feedback.
-
|
First, it must be a "delay queue" (because I really need one right now). I'm currently researching the timer modules of Tokio and Compio (I'd really like to upgrade current implementation, but studying them seems to be taking some time and brain cells). To achieve a high-performance delay queue, it seems it must be tightly coupled. If it's not coupled, the only option is to spawn a task for wakeup. Which approach do you think is better? |
Beta Was this translation helpful? Give feedback.
-
|
Sounds good, but some data structures still need a |
Beta Was this translation helpful? Give feedback.
-
|
I've written another small utility, under 100 lines of code. It's a debouncer implemented using a sleep function. I feel it's a bit crude, but its main advantage is its simplicity. Really, the only API that's coupled to a specific runtime is sleep. In other words, it could be made to run on any runtime if you could provide a function pointer to an async sleep implementation. I'm just not sure if I should go down that route, though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed that one of compio's most competitive advantages lies in single-threaded scenarios. However, because the Rust async ecosystem has long been dominated by Tokio, nearly all asynchronous data structures and primitives are Sync. We could implement higher-performance, non-Sync versions of these as alternative options specifically for single-threaded use cases. What does everyone think of this idea?
Beta Was this translation helpful? Give feedback.
All reactions