mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Extensions - updated comment
This commit is contained in:
parent
2f2a6907de
commit
4f1a1899aa
@ -9,9 +9,9 @@ public static class Extensions
|
||||
public static string ToHexString(this ArraySegment<byte> segment) =>
|
||||
BitConverter.ToString(segment.Array, segment.Offset, segment.Count);
|
||||
|
||||
// string.GetHashCode is not guaranteed to be the same on all machines, but
|
||||
// we need one that is the same on all machines. simple and stupid:
|
||||
// NOTE: Do not call this from hot path because it's slow for long method names.
|
||||
// string.GetHashCode is not guaranteed to be the same on all
|
||||
// machines, but we need one that is the same on all machines.
|
||||
// NOTE: Do not call this from hot path because it's slow O(N) for long method names.
|
||||
// - As of 2012-02-16 There are 2 design-time callers (weaver) and 1 runtime caller that caches.
|
||||
public static int GetStableHashCode(this string text)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user