Skip to content

Commit

Permalink
fix #21950: Significantly reduce freeze when deleting a node with the…
Browse files Browse the repository at this point in the history
… relation editor open

This specifically affected large relations, like that for Lake Huron (relation
1205151, ~14.5k members). This specifically reduced the UI freeze time when
deleting a node that is part of a way in the relation when the relation editor
is open from ~30s to <1s.


git-svn-id: https://josm.openstreetmap.de/svn/trunk@18401 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Mar 18, 2022
1 parent 4bfe2b9 commit b556a5f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ public void tagsChanged(TagsChangedEvent event) {
public void wayNodesChanged(WayNodesChangedEvent event) {
if (hasMembersReferringTo(Collections.singleton(event.getChangedWay()))) {
// refresh connectivity
for (int i = 0; i < members.size(); i++) {
fireTableCellUpdated(i, 2 /* the column with the connectivity arrow */);
}
fireTableChanged(new TableModelEvent(this, 0, members.size(),
2 /* The column with the connectivity arrow */));
}
}

Expand Down

0 comments on commit b556a5f

Please sign in to comment.