mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
Merged master
This commit is contained in:
commit
31349c708c
2
.github/workflows/RunUnityTests.yml
vendored
2
.github/workflows/RunUnityTests.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
- 2019.4.40f1
|
||||
- 2020.3.44f1
|
||||
- 2021.3.18f1
|
||||
- 2022.2.5f1
|
||||
- 2022.2.6f1
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -9,7 +9,11 @@ public static class Extensions
|
||||
public static string ToHexString(this ArraySegment<byte> segment) =>
|
||||
BitConverter.ToString(segment.Array, segment.Offset, segment.Count);
|
||||
|
||||
public static readonly Dictionary<string, int> StableHashes = new Dictionary<string, int>();
|
||||
// GetStableHashCode is O(N).
|
||||
// the longer the string, the more it needs to compute:
|
||||
// https://github.com/MirrorNetworking/Mirror/pull/3377
|
||||
// cache results for O(1) lookups.
|
||||
static readonly Dictionary<string, int> StableHashes = new Dictionary<string, int>();
|
||||
|
||||
[UnityEngine.RuntimeInitializeOnLoadMethod]
|
||||
public static void ResetStatics()
|
||||
|
Loading…
Reference in New Issue
Block a user