Merge pull request #147 from RamType-0/OptimizeInternalContinuationIteration

Optimize ContinuationQueue and PlayerLoopRunner iteration
master
Yoshifumi Kawai 2020-09-07 15:32:50 +09:00 committed by GitHub
commit 5136d92efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -170,9 +170,9 @@ namespace Cysharp.Threading.Tasks.Internal
for (int i = 0; i < actionListCount; i++)
{
var action = actionList[i];
actionList[i] = null;
try
{
action();

View File

@ -143,6 +143,7 @@ namespace Cysharp.Threading.Tasks.Internal
{
var j = tail - 1;
var loopItems = this.loopItems;
// eliminate array-bound check for i
for (int i = 0; i < loopItems.Length; i++)
{