On 22.04.2014 16:10, Rodney Dawes wrote: > Is the dash re-using the same session to download all the icons? My > network connection is very fast, but it's still a little slow to > download these icons, even on my workstation connected via ethernet to > the network. A very large part of the time is spent, purely in the > connection phase of talking to the server. So I'm seeing two things we > could do, independent of image size, and without even implementing local > caching to disk, that would provide a very useful performance > improvement. > > 1) Re-use of the connection session to avoid DoSing the server with lots > of requests, and to minimize time in "connecting" phase of the > transaction. > > 2) Optimize SSL/TLS handshake performance on the server. As all these > requests are happening over HTTPS, the handshake can slow things down, > especially when we're spamming the server with so many independent > connection requests. > > I'm seeing in my browser that after about 5 connections, the period > spent in "connecting" to the server (prior to any actual content > transfer of the icon), seems to continually get larger with each > additional request. So it seems like maybe 3 threads in the dash, each > with their own connection to the server, might be optimal, along with > any optimization we can do on the server, to make the HTTPS transaction > as fast as possible.
Sure, this would be useful - this would be work in the upstream Qt image providers, though, which we'd probably stop using once we build a system-wide image cache, where this connection-pool approach would have to live at that point. -- Michał (Saviq) Sawicz <michal.saw...@canonical.com> Canonical Services Ltd.
signature.asc
Description: OpenPGP digital signature
-- Mailing list: https://launchpad.net/~ubuntu-appstore-developers Post to : ubuntu-appstore-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-appstore-developers More help : https://help.launchpad.net/ListHelp