Stream API를 사용할 때의 성능 고려사항에 대해 말해보세요. #99
Sung-june27
started this conversation in
Java
Replies: 2 comments
-
|
Stream API는 내부적으로 객체 생성과 람다 호출 비용이 발생할 수 있습니다. 또, Lazy Evaluation 구조로 인해 디버깅 및 예측이 어려울 수 있으며, |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
기본형 데이터를 다룰 때 Stream와 같은 래퍼 타입을 사용하면 오토박싱으로 인해 성능이 저하될 수 있으므로, IntStream같은 기본형 전용 스트림을 사용하는 것이 효율적입니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
.
Beta Was this translation helpful? Give feedback.
All reactions