[PATCH] KIO::SlaveBase and the event loop
thiago at kde.org
Tue Jul 22 11:12:58 BST 2008
On Tuesday 22 July 2008 12:07:22 Roland Harnau wrote:
> 2008/7/21, David Faure <faure at kde.org>:
> > On Wednesday 16 July 2008, Roland Harnau wrote:
> >> Some logic may help: If starting 20 http slaves is a "problem"
> >> because it takes ~2.6 seconds, than it is especially a "problem" if
> >> Konqueror starts 20 http slaves during webpage loading, since
> >> KIO::Slave::createSlave is the way used by KIO (and hence by
> >> Konqueror) to create new IO slaves. And Konqueror/KIO launches in fact
> >> over 20 http slaves at some sites. The conclusion is simply an
> >> application of modus ponens.
> > The planned fix for this is HTTP pipelining support.
> Provided that all servers support HTTP/1.1. It should be sufficient if
> KIO would make better use of persistent connections, e.g. set a
> maximum number of simultaneous connections per host and queue
> requests/jobs accordingly.
Given KIO's distributed nature, that's only doable per application. I.e., the
application can control how many slaves it creates for each
host-port-protocol combination (inside libkio).
But two applications running in parallel will still use each the limit. This
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the kde-core-devel