mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
b588d9fd07
- 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 |
||
---|---|---|
.. | ||
connection | ||
dealer | ||
mercury | ||
apresolve.rs | ||
audio_key.rs | ||
authentication.rs | ||
cache.rs | ||
cdn_url.rs | ||
channel.rs | ||
component.rs | ||
config.rs | ||
date.rs | ||
diffie_hellman.rs | ||
error.rs | ||
file_id.rs | ||
http_client.rs | ||
lib.rs | ||
packet.rs | ||
proxytunnel.rs | ||
session.rs | ||
socket.rs | ||
spclient.rs | ||
spotify_id.rs | ||
token.rs | ||
util.rs | ||
version.rs |