[PySide] model/view: faster to access a user role than accessing a dict?

Tim Roberts timr at probo.com
Tue Oct 4 03:36:16 CEST 2022


On 10/3/22 12:19, Frank Rueter wrote:

> I wasn't talking about the time it takes to put data into the 
> model but the reactiveness of the resulting view when lots of data is 
> present and the user needs to traverse the tree view and filter it as 
> quickly as possible.

OK, but remember that nothing gets drawn until your handler returns and 
you get to the main loop to dispatch messages.  The computation time 
between those two approaches will be essentially identical, so the user 
experience should be the same.

-- 

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the PySide mailing list