This commit is contained in:
vis2k 2021-07-23 20:05:25 +08:00
parent 27ca4c95a3
commit 618e94d31b

View File

@ -131,11 +131,6 @@ public static void ApplyPatch(NetworkWriter A, NetworkReader delta, NetworkWrite
//
// DUPLICATE A needs to always send 'StartB', NOT 'StartA'.
// FROM SCRATCH always needs to send 'StartA', NOT 'StartB'.
// convert A bytes to list for easier insertion/deletion
// copy byte by byte to avoid new List(A.ToArray()) allocation.
// TODO avoid List<byte> allocation
// TODO linked list for performance? insert is expensive
/*
List<byte> B = new List<byte>();
ArraySegment<byte> ASegment = A.ToArraySegment();