[C# 빠른입력] String.Split 메소드와 StringReader type 중 누가 더 빠를까?
2019. 9. 10.
백준 알고리즘을 풀다가 더 빠르게 문자열을 입력받는 방법이 무엇일까 찾는 와중에 String.Split과 StringReader type 중 무엇이 더 효율적인지 비교하는 코드를 봤다. https://www.dotnetperls.com/stringreader C# StringReader Class (Get Parts of Strings) - Dot Net Perls Internals. The internal representation of the StringReader is a class with a member field string, an integer position, and an integer length. All the logic on the StringReader is based on the ..