I accidentally made the fastest event system in the world (blog.ardis.dev)
from orion_stderr@programming.dev to programming@programming.dev on 21 Apr 15:03
https://programming.dev/post/49172643

A ~200 LOC Rust crate benchmarked against ten other languages — came out ahead of a monomorphized C++ lib by ~4× at sub-fanout dispatch. Hot loop is six instructions. Can you make it faster?

#programming

threaded - newest

Azzu@lemmy.dbzer0.com on 21 Apr 17:42 next collapse

I have no clue about the different event systems specifically, but generally the less features you want out of something, the easier it is to make it fast. I would assume the others don’t need/want this extreme minimalism and trade it for something else.

ultimate_worrier@lemmy.dbzer0.com on 22 Apr 02:40 next collapse

From what I’ve seen, you might be might be able to beat that with Zig.

GraveyardOrbit@lemmy.zip on 22 Apr 03:28 collapse

Ai slop article