rust-lightning/lightning
Matt Corallo 5f404b9d0a Give Futures for a FutureState an idx and track StdWaker idxn
When an `std::future::Future` is `poll()`ed, we're only supposed to
use the latest `Waker` provided. However, we currently push an
`StdWaker` onto our callback list every time `poll` is called,
waking every `Waker` but also using more and more memory until the
`Future` itself is woken.

Here we take a step towards fixing this by giving each `Future` a
unique index and storing which `Future` an `StdWaker` came from in
the callback list. This sets us up to deduplicate `StdWaker`s by
`Future`s in the next commit.
2024-02-15 21:52:06 +00:00
..
src Give Futures for a FutureState an idx and track StdWaker idxn 2024-02-15 21:52:06 +00:00
Cargo.toml Bump hashbrown dependency to 0.13 2024-02-02 18:05:08 +00:00