Comment 14 for bug 779529

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 779529] Re: status/submit pane is DEAD slow with long list of files

11.05.2011 3:27, Gordon Tyler пишет:
> To disable repainting while a widget is being changed, call
> setUpdatesEnabled(False) before and setUpdatesEnabled(True) after.

I've just added such guards around the code that add lines or set text
to QTextBrowser, but I don't see any help from that.

setHtml() time: 9.797 sec (without disable/enable)
setHtml() time: 10 sec (*with* disable/enable)

loop with append(): 0.906 sec (without disable/enable)
loop with append(): 0.922 sec (*with* disable/enable)

I think this results say enough without additional comments.

If somebody wants to play with this I've published my debug branch
which prints some statistics about update of status/submit panes to
stdout (so on Windows you should run manually `bzr explorer
path/to/branch`)

lp:~bialix/bzr-explorer/debug

look at lib/html_report_view.py: HtmlReportView.refresh_view

--
All the dude wanted was his rug back