Skip to content

Commit

Permalink
cache sort of addon on engine status change (#165)
Browse files Browse the repository at this point in the history
this event occurs very regularly in the concurrent engine, this should
be put in cache like other frequent events

contributes to
#111

Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
  • Loading branch information
dvojtise committed May 12, 2020
1 parent 7e25909 commit c0df365
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected final void notifyEngineAboutToDispose() {
}

protected void notifyEngineStatusChanged(RunStatus newStatus) {
for (IEngineAddon addon : getExecutionContext().getExecutionPlatform().getSortedEngineAddons(EngineEvent.engineStatusChanged)) {
for (IEngineAddon addon : getCachedSortedEngineAddons(EngineEvent.engineStatusChanged)) {
try {
addon.engineStatusChanged(this, newStatus);
} catch (Exception e) {
Expand Down

0 comments on commit c0df365

Please sign in to comment.