From b1c314e47f203a65f68df53b85be56e49d8eaff2 Mon Sep 17 00:00:00 2001 From: cho Date: Mon, 11 Mar 2024 14:34:01 -0700 Subject: [PATCH] add tooltip with notes on performance implications --- web/js/imageFeed.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/js/imageFeed.js b/web/js/imageFeed.js index 64ec389..9214d57 100644 --- a/web/js/imageFeed.js +++ b/web/js/imageFeed.js @@ -313,6 +313,11 @@ app.registerExtension({ const deduplicateFeed = app.ui.settings.addSetting({ id: "pysssss.ImageFeed.Deduplication", name: "🐍 Image Feed Deduplication", + tooltip: `Ensures unique images in the image feed but at the cost of CPU-bound performance impact \ +(from hundreds of milliseconds to seconds per image, depending on byte size). + +For workflows that produce duplicate images, turning this setting on may yield overall client-side performance improvements \ +by reducing the number of images in the feed.`, defaultValue: false, type: "boolean" });