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.
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`)
11.05.2011 3:27, Gordon Tyler пишет: ed(False) before and setUpdatesEnabl ed(True) after.
> To disable repainting while a widget is being changed, call
> setUpdatesEnabl
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