[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: using ktexteditor as a base for a disassembly viewer
From:       Sven Brauch <mail () svenbrauch ! de>
Date:       2020-12-11 20:19:11
Message-ID: 6abc322b-631c-662e-fc74-cd017dbecd21 () svenbrauch ! de
[Download RAW message or body]


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)]
["profile.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic