Closed tekr closed 3 years ago
Note that this PR replaces a number of calls to string.BeginsWith() with string.Equals() as part of the performance improvements.
Based on the OkEx API docs and all examples within it, as well as empirical testing, there are no cases where Equals() would return a different result than BeginsWith(). The former is far more performant, particularly when done a very large number of times like is the case here.
Will re-raise from a non-master branch on my fork in order to keep PRs for different issues separate.
Fixes #14. Updated profiling results below show method reduced to ~2% CPU.