File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/alarm/ui/src/main/java/org/phoebus/applications/alarm/ui/tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class AlarmTreeViewCell extends TreeCell<AlarmTreeItem<?>>
3838 private final Label label = new Label ();
3939 private final ImageView image = new ImageView ();
4040 private final HBox content = new HBox (image , label );
41-
41+
4242 // TreeCell optimizes redraws by suppressing updates
4343 // when old and new values match.
4444 // Since we use the model item as a value,
@@ -47,9 +47,13 @@ class AlarmTreeViewCell extends TreeCell<AlarmTreeItem<?>>
4747 // to present changing values to the TreeCell, but also note
4848 // the issue shown in org.phoebus.applications.alarm.TreeItemUpdateDemo
4949 //
50- // So for now we simply force redraws by always indicating a change
50+ // So for now we simply force redraws by always pretending a change.
51+ // This seems bad for performance, but profiling the alarm GUI for
52+ // a large configuration like org.phoebus.applications.alarm.AlarmConfigProducerDemo
53+ // with 1000 'sections' of 10 subsections of 10 PVs,
54+ // the time spent in updateItem is negligible.
5155 @ Override
52- protected boolean isItemChanged (AlarmTreeItem <?> before , AlarmTreeItem <?> after )
56+ protected boolean isItemChanged (final AlarmTreeItem <?> before , final AlarmTreeItem <?> after )
5357 {
5458 return true ;
5559 }
You can’t perform that action at this time.
0 commit comments