From 54503580e8f900de42d8b8a6de03a6aa15f3a4ed Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Wed, 23 Aug 2023 12:18:33 -0700 Subject: [PATCH] Don't spend memory on overzooming when we aren't going to use it --- tile-join.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tile-join.cpp b/tile-join.cpp index 1d470c6a..d2a91534 100644 --- a/tile-join.cpp +++ b/tile-join.cpp @@ -495,7 +495,9 @@ struct reader { tiles_at_maxzoom_so_far.clear(); } - tiles_at_maxzoom_so_far.push_back(std::pair(x, y)); + if (want_overzoom) { + tiles_at_maxzoom_so_far.push_back(std::pair(x, y)); + } } }