58fa213be8
Making a new connection on every request is very slow and wasteful, espectially on slower network. Fix this by reuse a hyper client which shares a connection pool. I'm able to lower /r/popular loading time from 5s to 1.5s on my machine. |
||
---|---|---|
.. | ||
client.rs | ||
config.rs | ||
duplicates.rs | ||
instance_info.rs | ||
main.rs | ||
post.rs | ||
search.rs | ||
server.rs | ||
settings.rs | ||
subreddit.rs | ||
user.rs | ||
utils.rs |