mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
We only ever visit each node once, so we can just use an array. This avoids calling tal() all the time, which is *especially* slow when we're memory tracking. I had an old canned gossmap which I benchmarked for these (and in particular one node was unreachable, and that was slow): Before: 17.27 seconds After: 5.80 seconds Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
askrene.c | ||
askrene.h | ||
dijkstra.c | ||
dijkstra.h | ||
flow.c | ||
flow.h | ||
layer.c | ||
layer.h | ||
Makefile | ||
mcf.c | ||
mcf.h | ||
refine.c | ||
refine.h | ||
reserve.c | ||
reserve.h |