From 82a6d662cacdcf190eff866328a68ea5f729940f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 23 Mar 2026 08:04:47 +0100 Subject: [PATCH] feat(log): reduce overhead --- dependencies/tinylogger | 2 +- src/Image.cpp | 5 ++++- src/imageio/TiffImageLoader.cpp | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dependencies/tinylogger b/dependencies/tinylogger index 32e33be8..bd5c83dc 160000 --- a/dependencies/tinylogger +++ b/dependencies/tinylogger @@ -1 +1 @@ -Subproject commit 32e33be8459117834bad91f292c840f935ba524e +Subproject commit bd5c83dc81e92899b4d2c0181a913cabc3b541d3 diff --git a/src/Image.cpp b/src/Image.cpp index 014ae5db..77eb94b1 100644 --- a/src/Image.cpp +++ b/src/Image.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -547,7 +548,9 @@ Task ImageData::ensureValid(string_view channelSelector, int taskPriority) unordered_map channelNameCounter; for (auto& c : channels) { if (c.size() != size()) { - throw ImageLoadError{fmt::format("All channels must have the same size as the data window. ({}: {} != {})", c.name(), c.size(), size())}; + throw ImageLoadError{ + fmt::format("All channels must have the same size as the data window. ({}: {} != {})", c.name(), c.size(), size()) + }; } // Ensure the top-level layer of each channel is the image's part name diff --git a/src/imageio/TiffImageLoader.cpp b/src/imageio/TiffImageLoader.cpp index 4f8f07ea..b6e2ccdd 100644 --- a/src/imageio/TiffImageLoader.cpp +++ b/src/imageio/TiffImageLoader.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include using namespace nanogui; @@ -2441,7 +2442,7 @@ Task readTiffImage( ); } - const set labPhotometrics = { + const unordered_set labPhotometrics = { PHOTOMETRIC_CIELAB, PHOTOMETRIC_ICCLAB, PHOTOMETRIC_ITULAB,