Better linked-list traversal in BPF
Better linked-list traversal in BPF
Posted Mar 8, 2024 16:54 UTC (Fri) by willy (subscriber, #9762)In reply to: Better linked-list traversal in BPF by pj
Parent article: Better linked-list traversal in BPF
Demonstration code:
https://www.infradead.org/~willy/linux/scan.c
That doesn't actually do linked-list-by-index-instead-of-pointer. Someone who's interested can make that modification. But it's about 10x as fast to walk an array of random pointers as it is to walk a list of random pointers, depending on your CPU.
