KTar patch to fix speed problems with tar ioslave

Waldo Bastian bastian at kde.org
Mon Feb 9 12:16:01 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon February 9 2004 11:34, Jan Schäfer wrote:
> Hi,
>
> > On Sun February 8 2004 21:18, Jan Schäfer wrote:
> > > Currently I decompress the entire file. That has to be done, because
> > > the io slave does not know which file it has to return next.
> >
> > Would it help if it did know that? For http I have made "mget" which
> > (although not used at the moment) allows to tell the slave to fetch
> > multiple files and which leaves it to the slave to fetch them in an order
> > most convenient for the slave.
> >
> > I could imagine that that could be a real help here, because that would
> > potentially allow the slave to fetch the files in the order in which they
> > are in the archive and extract them with a single decompression pass
> > without storing the decompressed archive.
>
> That would really help I think. I have seen this method, but it was rather
> undocumented and I did not find a way to use it.
> Could you explain to me how I have to use this method and how I can tell
> the copy job to use the multiGet method instead of the get method?

Well, the copy job doesn't support it yet, so you will need to start there 
then. The idea is to use a single MultiGetJob instead of multiple Get jobs. 

You probably also need to store in the .protocol file whether the protocol 
supports mget, because that is currently hardcoded in MultiGetJob::start
See kdelibs/kio/kio/kprotocolinfo.h and 
kdelibs/kdecore/kprotocolinfo_kdecore.cpp for how to make that information 
available to KIO::Job

See HTTPProtocol::multiGet in kdelibs/kioslave/http.cc for the io-slave side 
of things.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAJ2vxN4pvrENfboIRAvabAJ4mVuAxvGKOFmnQDmhykYHWOSxc7QCcCqsa
irdgUymO2cyu+Q4TNYlBw68=
=rY79
-----END PGP SIGNATURE-----


More information about the Kde-optimize mailing list