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>
Sun, 10 Dec 2023 03:46:39 +0000 (03:46 +0000)
commit4ef4603b9cfb75f51a693699b971c1cf4374d3ab
tree4551106add96288340ee3bd44ab0a62938357f88
parentadb69cdb99d0f38ad605cfbbd4898d0784ca09f9
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