From kde-core-devel Wed Dec 01 20:02:09 2004 From: Aaron Seigo Date: Wed, 01 Dec 2004 20:02:09 +0000 To: kde-core-devel Subject: Re: RFC: Managing remote folders, KNetAttach sequel Message-Id: <200412011302.13292.aseigo () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110193137411191 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart10515037.JsYMABr9AJ" --nextPart10515037.JsYMABr9AJ Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On December 1, 2004 2:56, K=E9vin Ottens wrote: > It's really weird that it takes so much time on your box... It's immediate > on mine which is really less powerful. > Someone else with the same issue than Aaron? ok, so i see what the problem is... in systemimpl.cpp SystemImpl::createEnt= ry=20 there is this: if (!empty_icon.isEmpty()) { KURL url =3D desktop.readURL(); m_lastListingEmpty =3D true; KIO::ListJob *job =3D KIO::listDir(url, false, false); connect( job, SIGNAL( entries(KIO::Job *, const KIO::UDSEntryList &) ), this, SLOT( slotEntries(KIO::Job *, const KIO::UDSEntryList &) ) ); connect( job, SIGNAL( result(KIO::Job *) ), this, SLOT( slotResult(KIO::Job *) ) ); qApp->eventLoop()->enterLoop(); if (m_lastListingEmpty) icon =3D empty_icon; } if i #ifdef 0 out that loop system:/ lists instantly for whatever reason, trash:/ is painfully slow on my system here (haven't=20 investigated the cause of this yet). so getting the listing for trash:/ slo= ws=20 system:/ down dramatically, and since it's done syncronously the listing ju= st=20 apears to "hang". i imagine this will be true of any service that takes a=20 while to load and has an empty icon. it would be nice if this could be done async... i looked at the code and it= =20 would be doable from within kio_system (i've made the job processing async,= =20 even =3D) if there was only a way to update an entry from an ioslave that's= =20 already been passed to listEntry(). i'm sure there is, i just don't know=20 how ... < cue dfaure or waldo replying with an obvious answer ;) > =2D-=20 Aaron J. Seigo Society is Geometric --nextPart10515037.JsYMABr9AJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBriNF1rcusafx20MRAu0NAJ0bO18eeO2CzOPZ/vIrSoSZtmtuIACeJ87+ 85F2CEk6boo9lfU01zgk3ps= =sZyY -----END PGP SIGNATURE----- --nextPart10515037.JsYMABr9AJ--