influxdb/cache_system
Marco Neumann d077222897
refactor: avoid `tokio::spawn` for cache requests (#6229)
* refactor: avoid `tokio::spawn` for cache requests

During the happy-path, we don't need any tokio task to drive a cache
loader requests because the future issuing the request just act as a
driver. If that future is cancelled, we place the cache request in an
extra task. This avoid latencies due to task overhead and (task) context
switches for most requests. This may remove a millisecond or two from
latency but also makes the whole thing easier to analyze/profile because
we don't spawn a truckload of tasks.

This trick was borrowed from rskafka.

* refactor: split up code
2022-11-28 12:52:43 +00:00
..
benches refactor: avoid double-hash when updating addressable heap orders (#5577) 2022-09-08 11:50:55 +00:00
src refactor: avoid `tokio::spawn` for cache requests (#6229) 2022-11-28 12:52:43 +00:00
Cargo.toml chore(deps): Bump tokio from 1.21.2 to 1.22.0 (#6183) 2022-11-21 10:21:24 +00:00