Changeset 18520 in josm for trunk/src/org


Ignore:
Timestamp:
2022-07-14T20:22:52+02:00 (22 months ago)
Author:
taylor.smock
Message:

VectorPrimitive: Reduce memory allocations in isTagged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/vector/VectorPrimitive.java

    r18518 r18520  
    4545            }
    4646        }
     47        updateFlags(FLAG_TAGGED, hasKeys() && keys()
     48                .anyMatch(key -> !isUninterestingKey(key)));
    4749    }
    4850
     
    5961    @Override
    6062    public boolean isTagged() {
    61         return !this.getInterestingTags().isEmpty();
     63        return (flags & FLAG_TAGGED) != 0;
    6264    }
    6365
Note: See TracChangeset for help on using the changeset viewer.