[kio-extras] [Bug 462059] Folder access times out on folders containing a high amount of files (> 10000)

Harald Sitter bugzilla_noreply at kde.org
Fri Dec 30 12:07:09 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=462059

Harald Sitter <sitter at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |CONFIRMED
         Resolution|WAITINGFORINFO              |---
     Ever confirmed|0                           |1

--- Comment #6 from Harald Sitter <sitter at kde.org> ---
Found it!

>    m_dbusInterface->setTimeout(std::chrono::milliseconds(5min).count()); // TODO: listing folders with a huge amount of files may take a while

What really needs to happen is rewriting the listing portion of the dbus
interface. It currently runs a blocking list operation that is subject to
timeouts. What should happen instead is that listing gives out a dbusobjectpath
under which it will issue listing status signals. This would then also allow
more atomic listing where entries are emitted as they arrive rather than having
to load the entire file list into memory and only once that is done emitting
the result all at once.

ListingObject {
Q_INVOKABLE void start();
Q_SIGNAL void file(file);
Q_SIGNAL void done();
Q_SIGNAL void error(msg);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list