From e6311222a860936ebffb3341da49d68f2011e17b Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 4 Jun 2023 14:37:31 +0200 Subject: [PATCH] Disable binary file hashing for discovery, too slow Signed-off-by: falkTX --- source/backend/utils/PluginDiscovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/backend/utils/PluginDiscovery.cpp b/source/backend/utils/PluginDiscovery.cpp index 243142286..6caca0e36 100644 --- a/source/backend/utils/PluginDiscovery.cpp +++ b/source/backend/utils/PluginDiscovery.cpp @@ -391,6 +391,7 @@ private: { CarlaSha1 sha1; + /* do we want this? it is not exactly needed and makes discovery slow.. if (file.existsAsFile() && file.getSize() < 20*1024*1024) // dont bother hashing > 20Mb files { water::FileInputStream stream(file); @@ -402,6 +403,7 @@ private: sha1.write(block, r); } } + */ sha1.write(filename.toRawUTF8(), filename.length());