Closed ksunden closed 2 years ago
also might help if we didn't actually traverse the whole parent chain and have to redo everything (i.e. if the individual widgets handled it and not just passed it up to the tree widget itself...)
For the record, I've got an implementation of such a context manager and the difference in startup time is massive:
for 33 daemons it took 1m13s to startup and close (and I didn't even get to "responsive I can use the UI") without the contextmanager
for the same with the context manager, including actually seeing the UI, it took 8 seconds
In each case I closed it as soon as I was able to.
I will also note that whilst I do not think it is a solution for #27, it does mean that initial widgets can be grouped and thus not remade like they were, so I can actually use buttons (though I think as soon as I got hide/unhide to work I'd be right back where we are on that front, so its only a stopgap)
perhaps we could add a context manager to allow:
Which allows for bundling of successive model edits, but does emit the restructured callbacks only in
__exit__