Better HN
topnewbestaskshowjobs
Log inSign up

swilly022

4 karma · joined Oct 22, 2018 (8y ago) · 2 submissions

Submissions

comment 8y ago · link · parent

Another reason has to do with memory access and cache invalidation, when working with sparse matrices the entire graph structure is laid out in a contiguous block of memory which is ideal for CPU caching, unlike adjacency list where you have lots for small allocations scattered all over the memory space, this makes a huge difference when traversing the graph.

comment 8y ago · link · parent

True, although most "organic" graphs are sparse.