librespot/core
Daniel M b588d9fd07 Keep using the same hyper client
- Keep using the same hyper client instead of building a new one for
  each request
- This allows the client to reuse connections and improves the
  performance of multiple requests by almost 2x.
- The playlist_tracks example takes 38 secs before and 20 secs after the
  change to enumerate a 180 track playlist
- To avoid carrying the hyper Client generics through the whole project,
  `ProxyConnector` is always used as the Connector, but disabled when
  not using a proxy.
- The client creation is done lazily to keep the `HttpClient::new`
  without a `Result` return type
2022-08-04 18:37:32 +02:00
..
src Keep using the same hyper client 2022-08-04 18:37:32 +02:00
tests Update MSRV to 1.61 and fix test 2022-07-28 19:32:11 +02:00
build.rs Merge branch 'dev' into new-api and update crates 2022-07-27 23:31:11 +02:00
Cargo.toml Migrate to Rust 2021 2022-08-02 21:42:38 +02:00