handle speech events with some parallelism

limit pooled enumerables and timerchangeentries to 200 (arbitrary)
dont place disposed items back in the pool
This commit is contained in:
Mark Sturgill 2013-10-14 21:24:09 -07:00
parent 710c600b65
commit 20635cc8ee
3 changed files with 131 additions and 110 deletions

View file

@ -218,7 +218,7 @@ namespace Server
public void Free()
{
lock (m_InstancePool) {
if (m_InstancePool.Count <= 200) // Arbitrary
if (m_InstancePool.Count < 200) // Arbitrary
m_InstancePool.Enqueue( this );
}
}