Browse Source

Disable binary file hashing for discovery, too slow

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
e6311222a8
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      source/backend/utils/PluginDiscovery.cpp

+ 2
- 0
source/backend/utils/PluginDiscovery.cpp View File

@@ -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());



Loading…
Cancel
Save