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

Frank Rueter frank at ohufx.com
Thu Oct 6 10:02:21 CEST 2022


Cool, thanks for the reassurance. I will focus on readability.

Cheers,
frank

On Tue, Oct 4, 2022 at 2:36 PM Tim Roberts <timr at probo.com> wrote:

> 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.
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> https://lists.qt-project.org/listinfo/pyside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20221006/7fd2861c/attachment.htm>


More information about the PySide mailing list