Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jul 15, 2024
1 parent 740fca8 commit 27682ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DotNext.Threading/Threading/Tasks/TaskQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private ref T? this[int index]
{
Debug.Assert((uint)index < (uint)array.Length);

// Perf: skip bounds and variance check
return ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(array), index);
}
}
Expand Down

0 comments on commit 27682ff

Please sign in to comment.