Performance Considerations
In deciding whether to use the List or ArrayList class, both of which have similar functionality, remember that the List class performs better in most cases and is type safe. If a reference type is used for type T of the List class, the behavior of the two classes is identical. However, if a value type is used for type T, you need to consider implementation and
ํด๋น ๋๊ธ์ ์ญ์ ๋์์ต๋๋ค.
๋ด
c#์ non generic List๊ฐ ์์์ด? ๋ชฐ๋๋ค. ์์ด๋ ์์ธ๊ฑฐ์ง๋ง. List(๋์ ๋ค๋ฆด)๋ ArrayList๋ ์์ด๋ ์์ธ๊ฑฐ๋ผ, ๋ํํ ๋ ๋์ ๋น๊ตํ๋๊ฒ ์๋ฏธ๊ฐ ์๊ธดํจ. ๋๋ค ๊ทธ๋ฅ ์บ์คํ ์์ด ์ง์ด๋ฃ์์์์๊ฑฐ๋ผ ๋ณ ์ฐจ์ด๋ ์์๊ฑฐ๊ฐ์.
Performance Considerations In deciding whether to use the List or ArrayList class, both of which have similar functionality, remember that the List class performs better in most cases and is type safe. If a reference type is used for type T of the List class, the behavior of the two classes is identical. However, if a value type is used for type T, you need to consider implementation and
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-7.0#performance-considerations
์์์ฃผ ์๋ ์๋ Generic์ธ List๊ฐ ์์ด์ ArrayList๋ฅผ ์ฃผ๋ก ์ผ๋๋ฐ ์ด์ ๋ List์ฐ๋๊ฒ ๋ง๋ค๊ณ ....
https://stackoverflow.com/questions/2309694/arraylist-vs-list-in-c-sharp
Array ๋ฐฐ์ด ArrayList ์ฐธ์กฐํ๊ฐ์ฒด๋ฅผ ๋ด๋ ๊ฐ๋ณ๋ฐฐ์ด. ๊ฐํ์ ๋ฐฐ์ด๋ก ์ธ์๋ ์์ง๋ง ๊ทธ๋ฐ๊ฒฝ์ฐ ๋ฐ์ฑ/์ธ๋ฐ์ฑ ๋ฐ์. 2.0 ์ ๋ค๋ฆญ ์ดํ์ ์์ List๊บฝT์ ์ ๋ค๋ฆญ ๋์ ๋ฐฐ์ด ์ ๋๋ค.
C#๊ฐ์์์ ArrayList๋ฅผ ์ฐ๋๊ฑด ๋จ์ง ์ ๋ค๋ฆญ ๊ฐ๋ฅด์น๊ธฐ ์ด์ ์ด๋ผ์ ์ผ ๊ฒ์ด์์. ์๋ฆฌ๋ ์ด์ฐจํผ ๊ฐ๊ณ ๋ฐ์ฑ/์ธ๋ฐ์ฑ ๋ฌธ์ ํด๊ฒฐํ๊ฒ ์ ๋ค๋ฆญ ๋ฆฌ์คํธ์ด๋๊น์.