Tag

ParallelStream

0 views collected around this technical thread.

Top Architect
Top Architect
Feb 27, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code

This article examines how Java Stream and Lambda, while powerful for concise data processing, can become cumbersome when misused, and provides practical tips such as proper line breaks, function extraction, careful filter logic, safe Optional handling, and cautious use of parallel streams to keep code readable and maintainable.

Best PracticesJavaOptional
0 likes · 10 min read
Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code
Top Architect
Top Architect
Feb 11, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations

The article examines how Java Stream and Lambda, while powerful for concise code, can become cumbersome when overused, and offers practical tips such as proper line breaks, function extraction, predicate reuse, cautious Optional handling, and mindful use of parallel streams to maintain readability and performance.

BestPracticesCodeOptimizationJava
0 likes · 11 min read
Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2024 · Backend Development

Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation

This article explains how Java's parallelStream uses the shared ForkJoinPool, why developers may need to customize the thread pool for better performance and isolation, and provides two approaches—setting the system property and creating a dedicated ForkJoinPool—along with complete code examples and execution results.

ConcurrencyForkJoinPoolParallelStream
0 likes · 4 min read
Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation
Xianyu Technology
Xianyu Technology
Nov 29, 2022 · Backend Development

Lombok @Builder JSON Conflict, Dynamic Log Levels, JWT Overview, and Java 8 parallelStream Tips

The brief explains how Lombok’s @Builder can clash with JSON libraries and how adding no‑args and all‑args constructors resolves it, shows how to adjust log levels at runtime via Arthas or Spring’s LoggingSystem, outlines JWT structure and security cautions, and warns of common Java 8 parallelStream performance and correctness pitfalls.

JSONJWTJava
0 likes · 9 min read
Lombok @Builder JSON Conflict, Dynamic Log Levels, JWT Overview, and Java 8 parallelStream Tips
Architecture Digest
Architecture Digest
Jan 6, 2021 · Backend Development

Optimizing Large-Scale Excel Import Performance in Java Backend Applications

This article details a step‑by‑step optimization of a Java backend Excel import pipeline, covering data validation caching, batch insertion with MySQL VALUES, switching to EasyExcel, parallel stream insertion, and logging reduction to achieve sub‑minute import times for hundreds of thousands of rows.

EasyExcelExcelJava
0 likes · 11 min read
Optimizing Large-Scale Excel Import Performance in Java Backend Applications
Qunar Tech Salon
Qunar Tech Salon
Jan 27, 2015 · Backend Development

Performance Comparison of Java Fork/Join, ExecutorService, and Parallel Streams under Different Configurations

This article presents a comprehensive performance evaluation of Java's ExecutorService, Fork/Join framework, and Parallel Streams across CPU‑intensive and I/O‑intensive tasks, analyzing thread‑count effects, default pool limitations, and JVM tuning to guide optimal concurrency choices.

ConcurrencyExecutorServiceForkJoin
0 likes · 9 min read
Performance Comparison of Java Fork/Join, ExecutorService, and Parallel Streams under Different Configurations