Replies: 1 comment 2 replies
-
Sounds legit for me, what do you think of this @chkr1011? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just saw this code and noticed a small performance issue.
MQTTnet/Source/MQTTnet/Server/Internal/MqttClientSessionsManager.cs
Line 254 in 73d681b
If a list has a small number of items, it does not really matter to set the capacity of the list. However, when the list becomes large, it is important to set the capacity of the list. the cost of performance is
O(log(n))
and happened because of theEnsureCapacity
method ofList<T>
There's a possibility that things might change like this
It would be my pleasure to find and fix the whole project if you would like.
Beta Was this translation helpful? Give feedback.
All reactions