Files
sbox-public/engine/Sandbox.System/Utility/StringToken.cs
Lorenz Junglas dd3231b9d4 Avoid StringToken boxing (#4122)
* Avoid boxing of StringTokens in CommandLists

Add an additional Token field to our list entries, where we can store StringTokens without allocating on the heap.

* Implement IEquatable on StringTokens to avoid boxing in dicts

Implementing IEquatable<StringToken> + GetHashCode makes the dictionary use a direct uint comparison with zero boxing.
2026-02-23 11:01:17 +01:00

3.6 KiB