by betterunix · 13y ago · 0 comments
struct node {
void * data;
uint32_t idx_next;
};
You are still dereferencing pointers, of course, but you have better locality, even after doing a lot of insertions and deletions. struct node {
uint8_t r, g, b;
uint8_t idx_next;
};
Of course, a contiguous array uint8_t[256][3] might still be faster.