[게임서버] Temporal locality, Spatial locality
·
공부/게임 서버
C#으로 작성된 내용입니다. using System; namespace ServerStudy { class Program { static void Main(string[] args) { int[,] arr = new int[10000, 10000]; { long start = DateTime.Now.Ticks; for (int y = 0; y < 10000; y++) for (int x = 0; x < 10000; x++) arr[y, x] = 1; long end = DateTime.Now.Ticks; Console.WriteLine($"[y,x] 걸린 시간 : {end - start}"); } { long start = DateTime.Now.Ticks; for (int y = 0; y < 10000..