Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rini17
· 1y ago · 0 comments
Won't it introduce risk of invalid memory access when the list isn't contiguous? And if it always is contiguous then why not use array instead. Smells like contrived example.
Comments
[–]
imtringued
1y ago
Yeah this use case is pretty contrived. Even a simple unrolled linked list would beat his implementation.
[–]
pkhuong
1y ago
> Won't it introduce risk of invalid memory access
no.