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:
parent
710c600b65
commit
20635cc8ee
3 changed files with 131 additions and 110 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue