Use the more efficient HashSet instead of List for FlotasmAssetCache.m_CurrentlyWriting

This commit is contained in:
Justin Clark-Casey (justincc)
2012-05-04 23:03:33 +01:00
parent dec6ad2933
commit e18686528e

View File

@@ -83,7 +83,7 @@ namespace Flotsam.RegionModules.AssetCache
private Dictionary<string, ManualResetEvent> m_CurrentlyWriting = new Dictionary<string, ManualResetEvent>();
private int m_WaitOnInprogressTimeout = 3000;
#else
private List<string> m_CurrentlyWriting = new List<string>();
private HashSet<string> m_CurrentlyWriting = new HashSet<string>();
#endif
private bool m_FileCacheEnabled = true;