backoff parallelization

This commit is contained in:
Mark Sturgill 2013-10-19 17:08:31 -07:00
parent 3655814e4a
commit 0e5292d84d
4 changed files with 4 additions and 104 deletions

View file

@ -3308,7 +3308,7 @@ namespace Server
#if Framework_4_0
_processing = true;
if (m_DeltaQueue.Count >= 64) {
if (m_DeltaQueue.Count >= 512) {
Parallel.ForEach(m_DeltaQueue, i => i.ProcessDelta());
} else {
for (int i = 0; i < m_DeltaQueue.Count; i++) m_DeltaQueue[i].ProcessDelta();