Skip to content
New issue

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

무한 스트림의 존재 의의 #43

Open
bcc0830 opened this issue Mar 29, 2022 · 0 comments
Open

무한 스트림의 존재 의의 #43

bcc0830 opened this issue Mar 29, 2022 · 0 comments
Assignees
Labels
ch5 about chapter 5

Comments

@bcc0830
Copy link

bcc0830 commented Mar 29, 2022

문제

무한 스트림의 존재 의의를 묻는 문제이다
개인적으로 정답보다는 각자의 생각을 말하는 것을 의도한 문제이다

선정 배경

무한 스트림의 경우, 이를 병렬 스트림으로 구현하게 되면
멀티 코어 환경에서 CPU의 과부화 현상이 일어날 수 있다고 생각한다.
또한, 실질적으로 무한 스트림의 경우 sorted나 distinct와 같은 statefull한 연산을 하는 것이 불가능하다
그럼에도 불구하고 굳이 iterate, generator와 같이 무한스트림을 지원하는 이유는 무엇인가?

관련 챕터

  • [5장] 스트림 활용
    • pp. 190-195
@bcc0830 bcc0830 added the ch5 about chapter 5 label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ch5 about chapter 5
Projects
None yet
Development

No branches or pull requests

1 participant