1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 02:13:01 +00:00

Performance improvements

This commit is contained in:
JKorf
2024-03-21 16:46:17 +01:00
parent db9fba4cf2
commit e86713e949
11 changed files with 80 additions and 24 deletions
@@ -377,7 +377,8 @@ namespace CryptoExchange.Net.Sockets
// 2. Read data into accessor
_accessor.Read(data);
try {
try
{
if (ApiClient.ApiOptions.OutputOriginalData ?? ApiClient.ClientOptions.OutputOriginalData)
{
originalData = _accessor.GetOriginalString();
@@ -400,7 +401,7 @@ namespace CryptoExchange.Net.Sockets
lock (_listenersLock)
processors = _listeners.Where(s => s.ListenerIdentifiers.Contains(listenId) && s.CanHandleData).ToList();
if (!processors.Any())
if (processors.Count == 0)
{
if (!ApiClient.UnhandledMessageExpected)
{