mbien opened a new pull request, #9776:
URL: https://github.com/apache/netbeans/pull/9776

   package private `LookupSensitiveAction`:
    - add `refreshLater()` using `RequestProcessor`.`Task` `schedule(100)`
    - the subclasses reschedule back to EDT
   
   Subclass changes:
   - `ProjectAction`: removed RP.post wrapper, `refresh` does the work directly
   - `MainProjectAction`: removed own debounce, inherits from parent
   - `FileAction`: removed own 10ms debounce, inherits 100ms from parent
   - `SelectNodeAction`: override `refreshLater` to skip debounce (cheap op)
   - `ActiveConfigAction`: own debounce via reusable Task (not a subclass)
   - `ActiveBrowserAction`: same pattern (separate module, same hierarchy gap)
   
   -> side effect: more DRY
   
   async-profiler samples:
   
   | RP Task | Before | After | Change |
   |---------|--------|-------|--------|
   | ActiveBrowserAction | 105 | **0** | eliminated |
   | MainProjectAction | 98 | **0** | eliminated |
   | ProjectAction | 81 | **0** | eliminated |
   | ActiveConfigAction | 41 | **0** | eliminated |
   | **LookupSensitiveAction (debounced)** | — | **12** | single coalesced task 
|
   | NbClipboard (untouched) | 60 | 161 | now the dominant RP cost |
   
   The four optimized actions went from **325 samples (24.8%)** to **12 samples 
(1.0%)** — a **96% reduction**. The 12 remaining samples are the single 
debounced task firing once per burst (as expected).
   
   `NbClipboard` left alone since scary (161 samples, 13.2%). 
   
   Assisted-by: qwen3.8-27b


-- 
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