mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
Improved the performance of action updating at the expense of possibly
doing the update twice
This commit is contained in:
@@ -104,8 +104,10 @@ public class WindowActionManager {
|
|||||||
|
|
||||||
placeHolderForScheduledActionUpdate = placeHolder;
|
placeHolderForScheduledActionUpdate = placeHolder;
|
||||||
|
|
||||||
// Buffer the events, as they tend to come in 3s. That might not sound like a lot, but
|
// Typically, when we get one contextChanged, we get a flurry of contextChanged calls.
|
||||||
// when you have hundreds of actions, it adds up.
|
// In order to make the action updating be as responsive as possible and still be complete,
|
||||||
|
// we have chosen a policy that will reduce a flurry of contextChanged call into two
|
||||||
|
// actual calls - one that occurs immediately and one when the flurry times out.
|
||||||
updateManager.updateLater();
|
updateManager.updateLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user