core-lightning/gossipd/test
Rusty Russell b2c93beaed gossipd: use htable instead of simple array for node's channels.
For giant nodes, it seems we spend a lot of time memmoving this array.
Normally we'd go for a linked list, but that's actually hard: each
channel has two nodes, so needs two embedded list pointers, and when
iterating there's no good way to figure out which embedded pointer
we'd be using.

So we (ab)use htable; we don't really need an index, but it's good for
cache-friendly iteration (our main operation).  We can actually change
to a hybrid later to avoid the extra allocation for small nodes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-04-08 04:41:43 +00:00
..
.gitignore gossipd/test/run-bench-find_route: don't abort if we try to route to ourselves 2017-12-20 13:57:28 +01:00
Makefile daemons: use amount_msat/amount_sat in all internal wire transfers. 2019-02-21 08:01:37 +00:00
run-bench-find_route.c test: fix thinko in gossipd/test/run-bench-find_route.c 2019-03-05 11:42:43 +01:00
run-find_route-specific.c tools/generate-wire: use amount_msat / amount_sat for peer protocol. 2019-02-21 08:01:37 +00:00
run-find_route.c gossipd: use htable instead of simple array for node's channels. 2019-04-08 04:41:43 +00:00