<div><div dir="auto">That makes sense if you are processing the line and doing something with it and discarding, but not appending to a string doing nothing with it until the result is the whole file content. If what you want is the same as the readAll, this one is faster as there’s no allocations for the temporary. </div></div><div><br><div class="gmail_quote"><div dir="ltr">Em ter, 4 de dez de 2018 às 02:50, Kurt Hindenburg <<a href="mailto:noreply@phabricator.kde.org">noreply@phabricator.kde.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table><tbody><tr><td>hindenburg added a comment.
</td><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/D17329" target="_blank">View Revision</a></td></tr></tbody></table><br><div><div><p>Ok, I think I/someone read the docs and did it that way from the start - I wonder what the Qt docs thinks is a large file.</p>
<hr class="m_-6407492561792326256remarkup-hr">
<p>Reads the entire content of the stream, and returns it as a QString. Avoid this function when working on large files, as it will consume a significant amount of memory.</p>
<p>Calling readLine() is better if you do not know how much data is available.</p></div></div><br><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17329" target="_blank">https://phabricator.kde.org/D17329</a></div></div><br><div><strong>To: </strong>tcanabrava, hindenburg<br><strong>Cc: </strong>konsole-devel, ngraham, maximilianocuria, hindenburg<br></div></blockquote></div></div>