728x90
for loop(408.2 ms) > Find(430.4 ms) > Where + FirstOrDefault(516.9 ms) > FirstOrDefault(585.6 ms)
순으로 속도가 차이난다.
관련돼서 내가 쓴 글 - https://leejooyeon.tistory.com/39
728x90
'C#' 카테고리의 다른 글
관리되는 코드, 관리되지 않는 코드 (0) | 2023.01.17 |
---|---|
Closure, SOH(Small Object Heap), LOH(Large Object Heap) 오류 발생 원인과 해결방안 (0) | 2023.01.12 |
FirstOrDefault vs Where.FirstOrDefault (0) | 2023.01.12 |
BigList 모델 구현 (0) | 2023.01.12 |
IEnumerable vs IQueryable 차이점 (0) | 2023.01.06 |