<table><tr><td style="">rjvbb updated this revision to Diff 33823.<br />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/D12746">View Revision</a></tr></table><br /><div><div><p>This revision brings some code cleanup (including the use of a qresource in the unittest/benchmark) and above all, a signficant performance improvement.<br />
It turns out that the default LMDB environment uses synchronous I/O. In our case we can take the risk to use async I/O because we would at most lose the last few changes if a crash occurs - and most of the time the entire cache will be deleted after a crash anyway.</p>

<p>This change makes the LMDB backend almost as fast as the file-based backend on Mac.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D12746?vs=33778&id=33823">https://phabricator.kde.org/D12746?vs=33778&id=33823</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12746">https://phabricator.kde.org/D12746</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/language/CMakeLists.txt<br />
kdevplatform/language/duchain/tests/CMakeLists.txt<br />
kdevplatform/language/duchain/tests/test_topcontextstore.cpp<br />
kdevplatform/language/duchain/tests/test_topcontextstore.h<br />
kdevplatform/language/duchain/tests/topcontextdata.base64<br />
kdevplatform/language/duchain/topducontextdynamicdata.cpp<br />
kdevplatform/language/duchain/topducontextdynamicdata.h<br />
kdevplatform/language/duchain/topducontextdynamicdata_p.cpp<br />
kdevplatform/language/duchain/topducontextdynamicdata_p.h</div></div></div><br /><div><strong>To: </strong>rjvbb, brauch<br /><strong>Cc: </strong>mwolff, kdevelop-devel, antismap, iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>