Skip to content

Commit e79e23a

Browse files
authored
Merge pull request #435 from Tom94/better-log
feat(log): reduce overhead
2 parents f438f68 + 82a6d66 commit e79e23a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

dependencies/tinylogger

src/Image.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <map>
3636
#include <numeric>
3737
#include <ranges>
38+
#include <set>
3839
#include <unordered_set>
3940
#include <vector>
4041

@@ -547,7 +548,9 @@ Task<void> ImageData::ensureValid(string_view channelSelector, int taskPriority)
547548
unordered_map<string_view, size_t> channelNameCounter;
548549
for (auto& c : channels) {
549550
if (c.size() != size()) {
550-
throw ImageLoadError{fmt::format("All channels must have the same size as the data window. ({}: {} != {})", c.name(), c.size(), size())};
551+
throw ImageLoadError{
552+
fmt::format("All channels must have the same size as the data window. ({}: {} != {})", c.name(), c.size(), size())
553+
};
551554
}
552555

553556
// Ensure the top-level layer of each channel is the image's part name

src/imageio/TiffImageLoader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <optional>
3838
#include <span>
3939
#include <type_traits>
40+
#include <unordered_set>
4041
#include <vector>
4142

4243
using namespace nanogui;
@@ -2441,7 +2442,7 @@ Task<ImageData> readTiffImage(
24412442
);
24422443
}
24432444

2444-
const set<uint16_t> labPhotometrics = {
2445+
const unordered_set<uint16_t> labPhotometrics = {
24452446
PHOTOMETRIC_CIELAB,
24462447
PHOTOMETRIC_ICCLAB,
24472448
PHOTOMETRIC_ITULAB,

0 commit comments

Comments
 (0)