[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevplatform/5.0] project: Increase KIO file list performance by removing stat calls.
From:       Milian Wolff <mail () milianw ! de>
Date:       2016-01-31 22:51:59
Message-ID: E1aQ0qd-0003JH-BV () scm ! kde ! org
[Download RAW message or body]

Git commit 0ee1a0ef3499fe9e44a6e720f8f81579d4a4edc8 by Milian Wolff.
Committed on 31/01/2016 at 22:51.
Pushed by mwolff into branch '5.0'.

Increase KIO file list performance by removing stat calls.

We only need minimal details for the KDevelop project tree, i.e.
the name and file type are sufficient for our purposes. Thus set
the list job "details" metadata to 0.

M  +1    -0    project/filemanagerlistjob.cpp

http://commits.kde.org/kdevplatform/0ee1a0ef3499fe9e44a6e720f8f81579d4a4edc8

diff --git a/project/filemanagerlistjob.cpp b/project/filemanagerlistjob.cpp
index f45d4b5..43ea58f 100644
--- a/project/filemanagerlistjob.cpp
+++ b/project/filemanagerlistjob.cpp
@@ -79,6 +79,7 @@ void FileManagerListJob::startNextJob()
 
     m_item = m_listQueue.dequeue();
     KIO::ListJob* job = KIO::listDir( m_item->path().toUrl(), KIO::HideProgressInfo );
+    job->addMetaData(QStringLiteral("details"), QStringLiteral("0"));
     job->setParentJob( this );
     connect( job, &KIO::ListJob::entries,
              this, &FileManagerListJob::slotEntries );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic