Skip to content

Commit

Permalink
More EventListener overhead reductions (#52092)
Browse files Browse the repository at this point in the history
* More EventListener overhead reductions

* Use Type.GetTypeCode instead of RuntimeTypeHandle.GetCorElementType

* Fix int32 enum case

* Revert back from span to array

* DecodeObject => DecodeObjects
  • Loading branch information
MihaZupan authored May 7, 2021
1 parent f511a4a commit 55b613c
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,9 @@ private void Test_WriteEvent_ByteArray(bool useSelfDescribingEvents, Listener li
{
Assert.Equal(3, evt.PayloadCount);
byte[] retBlob = (byte[])evt.PayloadValue(1, "blob");
Assert.Equal(4, retBlob.Length);
Assert.Equal(retBlob[0], blob[2]);
Assert.Equal(retBlob[3], blob[2 + 3]);
Assert.Equal(1001, (int)evt.PayloadValue(2, "n"));
}
}));
Expand Down
Loading

0 comments on commit 55b613c

Please sign in to comment.