Changeset 18401 in josm for trunk/src


Ignore:
Timestamp:
2022-03-18T23:48:12+01:00 (3 years ago)
Author:
taylor.smock
Message:

fix #21950: Significantly reduce freeze when deleting a node with the 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r18208 r18401  
    178178        if (hasMembersReferringTo(Collections.singleton(event.getChangedWay()))) {
    179179            // refresh connectivity
    180             for (int i = 0; i < members.size(); i++) {
    181                 fireTableCellUpdated(i, 2 /* the column with the connectivity arrow */);
    182             }
     180            fireTableChanged(new TableModelEvent(this, 0, members.size(),
     181                    2 /* The column with the connectivity arrow */));
    183182        }
    184183    }
Note: See TracChangeset for help on using the changeset viewer.