mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Improved the performance of action updating at the expense of possibly
doing the update twice
This commit is contained in:
parent
83e0ce4091
commit
bb28af64d8
1 changed files with 4 additions and 2 deletions
|
@ -104,8 +104,10 @@ public class WindowActionManager {
|
|||
|
||||
placeHolderForScheduledActionUpdate = placeHolder;
|
||||
|
||||
// Buffer the events, as they tend to come in 3s. That might not sound like a lot, but
|
||||
// when you have hundreds of actions, it adds up.
|
||||
// Typically, when we get one contextChanged, we get a flurry of contextChanged calls.
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue