Re:An Architecture for Millions of Things
by anselm_eickhoff on Thursday July 14, 2016 @08:19AM
(#12093105)
Exactly, and messages are divided into buckets which contain only one kind of (type of message, type of receiver)-combination. If you then iterate over that, you are going to execute very similar code repetitively.
I guess my epiphany was that exactly because actors are isolated, I could manage them like this and do some very primitive fast array iteration, while still using a nice high-level pattern to implement the actual game logic.
[0] https://www.reddit.com/r/programming/comments/4sp25q/xpost_r...