neilcsmith-net commented on PR #9772:
URL: https://github.com/apache/netbeans/pull/9772#issuecomment-6558921984

   > this is plan B. If debouncing the lookup updates isn't feasible (#9771) we 
have to make the event consumers non-blocking. This is trying to avoid to block 
on clipboard reads during selection change until it is required. This change 
alone fixes the performance problem (UI freeze due to queue back pressure can't 
be provoked anymore with the method described in #9771).
   > 
   > However: nobody wants to touch clipboard code given the history, so I 
wanted to avoid this originally.
   
   While I agree with the principle of ensuring consumers are non-blocking, I 
also understand the concern about touching clipboard code - too many bad 
memories.
   
   I'm not sure debouncing on the producer side is infeasible.  My suggestion 
at https://github.com/apache/netbeans/pull/9771#issuecomment-6546966283 was to 
also consider the lookup as a consumer, and look before the stage you were 
looking at, in the UI layer.  eg.  debouncing rapid selection changes from the 
tree or list before the selected node change is passed to the explorer manager? 
 With something like key repeat all the EM really needs to capture is the first 
and last change?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to