Align `PathBuildingHop` to 128b, now that we store them in a `Vec`
authorMatt Corallo <git@bluematt.me>
Thu, 7 Dec 2023 23:40:26 +0000 (23:40 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 21 Dec 2023 05:59:57 +0000 (05:59 +0000)
commit3db39bfaf855219d453ff906636b625d5b3dd489
tree737da7fbcc98f1a33cead813a733eeb9a50c1675
parentdf322e3a505782fad6cc20a4b9efcec634cb6d80
Align `PathBuildingHop` to 128b, now that we store them in a `Vec`

Now that `PathBuildingHop` is stored in a `Vec` (as `Option`s),
rather than `HashMap` entries, they can grow to fill a full two
cache lines without a memory access performance cost. In the next
commit we'll take advantage of this somewhat, but here we update
the assertions and drop the `repr(C)`, allowing rust to lay the
memory out as it wishes.
lightning/src/routing/router.rs