performance improvements for point collection and mesh iteration