Little performance improvement in topological erosion