Reduce size_of
Node
for better cache performance in render loop
#208
Labels
size_of
Node
for better cache performance in render loop
#208
std::mem::size_of::<Node>() == 160
currently. I think we gain some nice performance (better cache utilization) if we trim it down a bit.Some suggestions:
u8
instead ofusize
for input/output indicesu32
forNodeIndex
instead ofu64
outgoing_edges
on the heapChannelConfig
as a singleArc<(count, mode, interp)>
ChannelConfig is now a single Arc instead of 3 #307On a different note, we can explore to store the Nodes as an "struct of arrays" instead of "array (hashmap in our case) of structs" https://news.ycombinator.com/item?id=17981306
The text was updated successfully, but these errors were encountered: