<table><tr><td style="">cullmann 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/D19367">View Revision</a></tr></table><br /><div><div><p>Simple tests with an 12 million lines document (COPYING.LIB concated "a lot") show compare to the current approach usable behavior.<br />
You start to type some word not in the document, it won't free for 10 seconds, it will just search in the background like it should.<br />
I think the largest existing issue is IMHO the multi line stuff. Some more comments could help.</p>

<p>Should the</p>

<p>const int newChunkOverlap = pattern.count(QLatin1Char('\n'));<br />
....</p>

<p>actually disable it for multi line searches?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19367">https://phabricator.kde.org/D19367</a></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor, dhaumann, cullmann<br /><strong>Cc: </strong>cullmann, kwrite-devel, kde-frameworks-devel, KTextEditor, domson, michaelh, ngraham, bruns, demsking, sars, dhaumann<br /></div>