Better linked-list traversal in BPF
Better linked-list traversal in BPF
Posted Mar 8, 2024 16:25 UTC (Fri) by pj (subscriber, #4506)In reply to: Better linked-list traversal in BPF by atnot
Parent article: Better linked-list traversal in BPF
Indeed, it's my understanding that it's more efficient for traversal to allocate an array of node records and then make a linked list based on array indices. This may also shrink the memory footprint because the array index (aka 'pointer') may be smaller (u16 or even u8) than a machine pointer.
