-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
HashSet<T> contains three calls to string.Format in non-invariant checking methods.
Line 127 in 21e90a2
| Logger.Log(string.Format(string.Format("Expand to {0} bits", bits + 1))); |
Line 144 in 21e90a2
| Logger.Log(string.Format(string.Format("Resize to {0} bits", bits))); |
Line 167 in 21e90a2
| Logger.Log(string.Format(string.Format("Resize to {0} bits done", bits))); |
Even though Logger.Log per default sends any string into void, this still results in some unnecessary string allocations.
Solution
I would suggest deleting those lines or hide them behind #if DEBUG
Describe alternatives you've considered
Additional context
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request