Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
함수형 프로그래밍 with 자바
by
벤 바이디히
,
허귀영
March 2024
Beginner to intermediate
528 pages
10h 48m
Korean
Hanbit Media, Inc.
Content preview from
함수형 프로그래밍 with 자바
309
CHAPTER 08
스트림을 활용한 병렬 데이터 처리
물론, 성능 향상은 분명 추구할만한 가치가 있지만 병렬 스트림이 순차 데이터 처리보다 더
효과적인지는 상황과 요구 사항에 따라 달라집니다. 기본적으로 순차 스트림을 사용하고 성
능 향상이 요구되고, 예측되는 상황에서만 병렬 스트림으로 전환해야 합니다. 때로는 ‘옛날
방식’인
for
-
loop
만으로도 충분히 효율적인 작업이 가능할 수 있습니다.
8.4.7
병렬 스트림 체크리스트
[예제
8
-
5
]에서는 병렬 처리에 적합하지 않은 데이터 소스의 문제점이 드러났습니다. 그러
나 이 문제만이 병렬화하기 어려운 작업에 대한 유일한 지표는 아닙니다.
8
.
4
절에서 제시된
기준에 따라 병렬 스트림 사용의 적절성을 빠르게 판단하기 위해 [표
8
-
4
]에서 체크리스트를
제시했습니다.
표
8-4
병렬 스트림 체크리스트
병렬 스트림 체크리스트
기준
고려 사항
데이터 소스
•분해 가능성에 따른 비용
•분할 덩어리의 균등성/예측 가능성
•각 요소의 데이터 지역성
데이터의 규모
•전체 요소의 수
•
NQ
모델
중간 연산
•연산 간의 상호의존성
•공유 상태의 필요성
•병렬 처리에 적합한 연산
•데이터 처리 순서
최종 연산
•최종 결과를 합치는 데 필요한 비용
•가변적 또는 불변적 감소
사용 가능한 자원
•사용 가능한
CPU
의 수
•메모리 용량
•공용 또는 사용자 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
실무로 통하는 클린 코드
막시밀리아노 콘티에리
함수형 사고: 객체지향 개발자에서 함수형 개발자로 거듭나기
김재완, 닐 포드
러닝 Go : Go 개발자처럼 생각하는 방법
존 보드너
AI를 위한 필수 수학
할라 넬슨
Publisher Resources
ISBN: 9791169212175