We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream은 일단 쓰는게 좋을까? 언제 쓰면 좋고, 언제 쓰면 안될까?
Stream 안쓰는 코드도 얼마든지 있는데 굳이 안변경하고 내버려두는 이유는 뭘까?
The text was updated successfully, but these errors were encountered:
데이터가 수천건이 넘어가면, 일반 for 문이 성능이 더 좋게 나온다.
왜 인지 명확히 모르는 상태..
Sorry, something went wrong.
stream은 한번 consumed 되면 다시 재사용 할 수 없다. 사용을 위해서 매번 streams을 만든다.
자바의 람다, 익명 클래스만 중괄호 범위 안의 final 변수에 접근할 수 있다.
만약 parallel stream을 사용할때, 람다표현식이 stateful하면 random한 결과 값을 응답할 수 있다.
출처 : 자바 doc
for 문의 성능이 Stream 보다 좋은 이유
https://jypthemiracle.medium.com/java-stream-api%EB%8A%94-%EC%99%9C-for-loop%EB%B3%B4%EB%8B%A4-%EB%8A%90%EB%A6%B4%EA%B9%8C-50dec4b9974b
sendkite
No branches or pull requests
주제
Stream은 일단 쓰는게 좋을까? 언제 쓰면 좋고, 언제 쓰면 안될까?
선정 배경
Stream 안쓰는 코드도 얼마든지 있는데 굳이 안변경하고 내버려두는 이유는 뭘까?
본론
The text was updated successfully, but these errors were encountered: