It all depends on what language you use. I assume that you are using derivative C.
In my implementations, I found the object graph approach much higher. There is some tradeoff in speed, but ease of maintenance outweighs the challenges of finding objects. It all depends on whether you are looking for learning speed or deciding speed ... I assume that you are most worried about learning speed?
If necessary, you can eventually automatically optimize some problems with calling objects.
Given your secondary motive for network subnets, I think it’s even more important to be objective - it makes it easier to extract some of the work.
source share