Bug 708901 - Migrate to nsTHashSet in dom/filesystem. r=baku

Depends on D108594

Differential Revision: https://phabricator.services.mozilla.com/D108595
This commit is contained in:
Simon Giesecke 2021-03-23 10:36:33 +00:00
parent cf4cc2d7de
commit 1657ef316a
2 changed files with 3 additions and 3 deletions

View File

@ -373,7 +373,7 @@ nsresult GetFilesHelperBase::AddExploredDirectory(nsIFile* aDir) {
}
}
mExploredDirectories.PutEntry(path);
mExploredDirectories.Insert(path);
return NS_OK;
}

View File

@ -12,7 +12,7 @@
#include "nsCycleCollectionTraversalCallback.h"
#include "nsHashKeys.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "nsTHashSet.h"
#include "nsThreadUtils.h"
class nsIGlobalObject;
@ -59,7 +59,7 @@ class GetFilesHelperBase {
// We populate this array in the I/O thread with the BlobImpl.
FallibleTArray<RefPtr<BlobImpl>> mTargetBlobImplArray;
nsTHashtable<nsStringHashKey> mExploredDirectories;
nsTHashSet<nsString> mExploredDirectories;
};
// Retrieving the list of files can be very time/IO consuming. We use this