Batch processing of network packets
Batch processing of network packets
Posted Aug 22, 2018 20:32 UTC (Wed) by mm7323 (subscriber, #87386)In reply to: Batch processing of network packets by excors
Parent article: Batch processing of network packets
One thing that springs to mind, in an object oriented context, is that inheritance really breaks (instruction) cache efficiency. You may have a collection of objects and wish to call the same method on each one, but due to inheritance each object can take very different code paths and foul the instruction caches.
The data orientated approach the link describes mitigates this. But sorting collections by object type (before any other comparison criteria) may also yield better performance in this vain too I guess.