|
|
|
|
|
by kelindar
358 days ago
|
|
This might be useful to some if you need a very light pub/sub inside one process. I was building a small multiplayer game in Go. Started with a channel fan-out but (for no particular reason) wanted to see if we can do better. Put together this tiny event bus to test, and on my i7-13700K it delivers events in 10-40ns, roughly 4-10x faster than the plain channel loop, depending on the configuration. |
|