<table><tr><td style="">rjvbb created this revision.<br />rjvbb added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.
</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/D7745" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a companion patch to <a href="https://phabricator.kde.org/D7742" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D7742</a> .</p>

<p>KDevelop currently starts the project parse run when the project has been imported. That's perfect when using single-project sessions, but it means that the import of each subsequent project has to compete with the parser. Project import is a process that can block the UI and should thus take as little time as possible.</p>

<p>This patch introduces a simple queue that holds all newly imported projects until all the imports have been completed; they're handed off to the parser only once the actual import has completed.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Works as intended in 5.1.2; patch applied cleanly to the 5.2 branch.</p>

<p>This is a change I've been thinking about for a long time; the initial impression is of improved responsiveness (even with "parse all project files" turned off).</p>

<p>I didn't see a need to make <tt style="background: #ebebeb; font-size: 13px;">m_pendingParseProjectJobs</tt> a FIFO or FILO, is there?</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/D7745" rel="noreferrer">https://phabricator.kde.org/D7745</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/shell/projectcontroller.cpp</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>