<table><tr><td style="">rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8059" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Some final timing results, from my Linux rig (1.6Ghz N3150, 8Gb RAM, ZFS on an SSHD)</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">> time abstractfilemanagerpluginimportbenchmark kdevelop-git-5 ~/cworks/Scratch/gcc/gcc-7.2.0 /opt/local/linux-ports
KDirWatch backend: Inotify
Starting import of project # 0 at "/home/bertin/work/src/Scratch/KDE/KF5/kdevelop-git-5"
creating dirwatcher took 0.173 seconds
Starting import of project # 1 at "/home/bertin/cworks/Scratch/gcc/gcc-7.2.0"
creating dirwatcher took 1.019 seconds
Starting import of project # 2 at "/opt/local/linux-ports"
creating dirwatcher took 0.044 seconds
imported project 2 with 5051 files (watched: 5051 ): 0.724 seconds
imported project 0 with 6568 files (watched: 6568 ): 1.949 seconds
imported project 1 with 75038 files (watched: 75038 ): 2.822 seconds
Done.
closing project 0 : 0.01 seconds
closing project 1 : 0.033 seconds
closing project 2 : 0.001 seconds
4.724 user_cpu 1.735 kernel_cpu 0:04.98 total_time 129.5%CPU</pre></div>
<p>Using QFileSystemWatcher:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">> time env KDIRWATCH_METHOD=QFSWatch abstractfilemanagerpluginimportbenchmark kdevelop-git-5 ~/cworks/Scratch/gcc/gcc-7.2.0 /opt/local/linux-ports/
KDirWatch backend: QFSWatch
Starting import of project # 0 at "/home/bertin/work/src/Scratch/KDE/KF5/kdevelop-git-5"
creating dirwatcher took 1.398 seconds
Starting import of project # 1 at "/home/bertin/cworks/Scratch/gcc/gcc-7.2.0"
creating dirwatcher took 202.161 seconds
Starting import of project # 2 at "/opt/local/linux-ports"
creating dirwatcher took 2.576 seconds
imported project 2 with 5051 files (watched: 5051 ): 0.749 seconds
imported project 0 with 6568 files (watched: 6568 ): 205.659 seconds
imported project 1 with 75038 files (watched: 75038 ): 5.374 seconds
Done.
closing project 0 : 39.803 seconds
closing project 1 : 257.608 seconds
closing project 2 : 0.01 seconds
515.422 user_cpu 19.418 kernel_cpu 8:27.21 total_time 105.4%CPU</pre></div>
<p>The 2nd timings show how the actual import of the smaller project 0 (KDevelop) is held up by the dirwatcher creation for the big project 1 (GCC 7.2) which is imported a lot faster.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8059" rel="noreferrer">https://phabricator.kde.org/D8059</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>