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

0.7.4.1
Justin Clark-Casey (justincc) 2012-05-04 23:03:33 +01:00
parent dec6ad2933
commit e18686528e
1 changed files with 1 additions and 1 deletions

View File

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