How does it compare to nuclei #239
-
How does nuclei compare to this? To be frank, I don't understand nuclei or this that good. Any benchmarks possible? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Also another question, Monoio says this on their README.md:
Am I right in guessing this is also valid for compio? |
Beta Was this translation helpful? Give feedback.
-
Its io-uring impl is unsound, and I don't know about other parts. Its API does not count into completion-based IO (so does entire Rust eco system, basically) and does nothing to guarantee the safety (e.g. by adding a shim buffer like we do), so... |
Beta Was this translation helpful? Give feedback.
-
Well, yes. Compio is not a silver bullet. CPU balance is always a hard problem. On Linux, io-uring is optimized for single-threaded runtime, which means the CPU is unbalanced if the workload is unbalanced. In addition, if you wouldn't like the runtime taking the ownership of the buffers, tokio is still the better choice, because the language design of Rust is not fully suitable for completion-based async. |
Beta Was this translation helpful? Give feedback.
-
Can we use it with rayon or can compio be used like a rayon alternative? |
Beta Was this translation helpful? Give feedback.
Its io-uring impl is unsound, and I don't know about other parts. Its API does not count into completion-based IO (so does entire Rust eco system, basically) and does nothing to guarantee the safety (e.g. by adding a shim buffer like we do), so...