Updated profiling results below show method reduced to ~2% CPU.
Note that this PR replaces a number of calls to string.BeginsWith() with string.Equals().
Based on the OkEx API docs and all examples within it, as well as empirical testing, there are no cases changed where Equals() would return a different result than BeginsWith(). The former is far more performant, particularly when done a very large number of times as is the case here.
Updated profiling results below show method reduced to ~2% CPU.
Note that this PR replaces a number of calls to string.BeginsWith() with string.Equals().
Based on the OkEx API docs and all examples within it, as well as empirical testing, there are no cases changed where Equals() would return a different result than BeginsWith(). The former is far more performant, particularly when done a very large number of times as is the case here.