Re: using ktexteditor as a base for a disassembly viewer

Sven Brauch <[email protected]>
Newsgroups gmane.comp.kde.devel.kwrite
Message-ID <[email protected]>
Hi,

On 12/11/20 8:19 PM, Milian Wolff wrote:
> A better approach would store the layout (i.e.
> the text document) per item somehow. Maybe I can just put that into the model
> itself, next to the highlighting...

Yeah, but I profiled it back then and it seemed acceptable. I just tried 
again; dragging the scroll bar of an item view that looks like the 
attached gives the attached profile. You can see that compared to the 
time the plain QStyledItemDelegate::paint takes for the other columns, 
it's not orders of magnitude slower, especially considering that in this 
example the RichText delegate renders most of the contents anyways.

You are of course correct that computing the layout takes most of the 
time, but it seems to be like 50% of the time, not 99%, so I personally 
would solve this problem if it actually shows up. ;)

Greetings!
itemview.png (image/png, 45.9 KB) - not displayed
profile.png (image/png, 126.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.