<table><tr><td style="">staniek created this revision.<br />staniek added a reviewer: piggz.<br />Herald added a project: KReport.<br />staniek requested review of this revision.
</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/D25108">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fix insane delay in report items creation by not instantiating hi-resolution QPrinter object for each item.</p>
<p>To be honest I am not understanding the whole word-wrapping algorithm used here.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Approach 1: Run KEXI and create report with large number of pages. Use at<br />
least one text element.<br />
Before the fix there's noticeable O(N) delay.</p>
<p>Approach 2: Also if we enter static value for the text item the kreportexample<br />
app, there is noticeable delay on each key press before this fix.</p>
<p>Expected: all is smooth after the fix.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R14 KReport</div></div></div><br /><div><strong>BRANCH</strong><div><div>3.2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25108">https://phabricator.kde.org/D25108</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/CMakeLists.txt<br />
src/common/KReportUtils_p.cpp<br />
src/common/KReportUtils_p.h<br />
src/items/text/KReportItemText.cpp</div></div></div><br /><div><strong>To: </strong>staniek, piggz<br /><strong>Cc: </strong>Kexi-Devel-list, staniek<br /></div>