Tagged articles
18 articles
Page 1 of 1
21CTO
21CTO
Aug 19, 2025 · Backend Development

How Generators Slash PHP Memory Usage When Processing Massive CSV Files

This article explains how PHP lazy evaluation using generators and the Iterator API can dramatically reduce memory consumption when loading huge CSV files, provides side‑by‑side code examples and benchmarks, and offers guidance on when to choose each approach for real‑world data processing tasks.

GeneratorsLazy EvaluationMemory Optimization
0 likes · 7 min read
How Generators Slash PHP Memory Usage When Processing Massive CSV Files
Test Development Learning Exchange
Test Development Learning Exchange
May 17, 2025 · Fundamentals

Understanding Python Generator Functions: Syntax, Usage, and Practical Examples

Python generator functions, using the yield keyword, enable lazy evaluation and memory-efficient data processing, with examples covering basic syntax, differences from regular functions, Fibonacci sequence generation, large file reading, two-way communication via send(), and control methods like throw() and close(), highlighting their advantages.

Code ExamplesIteratorsLazy Evaluation
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Code Mala Tang
Code Mala Tang
Apr 22, 2025 · Fundamentals

Unlock Python’s itertools: The Swiss‑Army Knife for Efficient Data Pipelines

This article introduces Python’s built‑in itertools module, explains its infinite, finite, and combinatorial iterator utilities, demonstrates advanced techniques like grouping and pipeline construction, and compares its lazy evaluation memory benefits to traditional list comprehensions for large‑scale data processing.

IteratorLazy Evaluationdata-processing
0 likes · 10 min read
Unlock Python’s itertools: The Swiss‑Army Knife for Efficient Data Pipelines
Wukong Talks Architecture
Wukong Talks Architecture
Jul 29, 2024 · Backend Development

Understanding the Java Stream Pipeline: Implementation Principles and Execution Process

This article explains the internal workings of Java's Stream API pipeline, covering how intermediate and terminal operations are recorded, combined, and executed via stages and Sink interfaces, illustrating lazy evaluation, stateful vs stateless operations, and the mechanisms behind parallel and sequential processing.

Intermediate OperationsJavaLazy Evaluation
0 likes · 21 min read
Understanding the Java Stream Pipeline: Implementation Principles and Execution Process
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 29, 2024 · Fundamentals

Understanding Java Stream: How Lazy Pipelines Transform Collections

This article explains the core principles of Java Stream, covering its three main characteristics, pipeline construction, intermediate and terminal operations with code examples, and how lazy execution and sink generation produce results only when a terminal operation is invoked.

Backend DevelopmentJava 8Lazy Evaluation
0 likes · 10 min read
Understanding Java Stream: How Lazy Pipelines Transform Collections
php Courses
php Courses
Jun 14, 2024 · Backend Development

Understanding PHP Generators: Efficient Data Iteration and Memory Optimization

This article explains the concept, operation, and advantages of PHP generators, demonstrating how they provide memory‑efficient, lazy‑evaluated iteration for large data sets and streams, and includes practical code examples and best‑practice tips for backend developers.

Backend DevelopmentGeneratorsIterators
0 likes · 9 min read
Understanding PHP Generators: Efficient Data Iteration and Memory Optimization
Java Captain
Java Captain
Mar 25, 2024 · Backend Development

Constructing Streams in Java 8: Methods and Examples

Java 8’s Stream API introduces a declarative, lazy-processing model for collections, and this article details multiple ways to create streams—including from collections, arrays, static factory methods, files, generators, and iterators—providing code examples and explanations to help developers harness its expressive and efficient data‑handling capabilities.

JavaJava 8Lazy Evaluation
0 likes · 5 min read
Constructing Streams in Java 8: Methods and Examples
Test Development Learning Exchange
Test Development Learning Exchange
Dec 11, 2023 · Fundamentals

10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python

This article presents ten practical Python examples illustrating lazy evaluation using generators and iterators, covering infinite sequences, large data processing, file streaming, and on-demand computation, highlighting memory efficiency and performance benefits for handling big data and infinite streams.

GeneratorsInfinite SequencesLazy Evaluation
0 likes · 7 min read
10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python
Tencent Cloud Developer
Tencent Cloud Developer
Jun 20, 2022 · Fundamentals

Understanding C++ LINQ and Ranges Pipeline Implementation

The article explains how a C++ LINQ‑style pipeline, built on concepts like _Can_pipe and composable _Pipeline classes, provides lazy, type‑safe range operations using the pipe operator, serving as the foundation for the C++20 ranges library and future execution framework.

C++ LINQC++20 RangesLazy Evaluation
0 likes · 10 min read
Understanding C++ LINQ and Ranges Pipeline Implementation
Code Ape Tech Column
Code Ape Tech Column
Apr 16, 2021 · Backend Development

Why Log4j2 Beats Logback and Log4j1: Performance, Configuration, and Advanced Features

This article compares Log4j2 with older Java logging frameworks, highlighting its superior asynchronous performance, zero‑GC design, flexible parameter formatting, simplified configuration options, and practical usage examples, ultimately showing why it should replace Logback and Log4j1 in modern applications.

ConfigurationLazy Evaluationasync logging
0 likes · 14 min read
Why Log4j2 Beats Logback and Log4j1: Performance, Configuration, and Advanced Features
Sohu Tech Products
Sohu Tech Products
Apr 7, 2021 · Fundamentals

Functional Programming in Swift: Concepts, Benefits, and Practical Examples

This article explains functional programming concepts, their importance, and how to apply them in Swift through high‑order functions, lazy evaluation, custom operators, and composable image‑filter pipelines, while also addressing common pitfalls such as nested callbacks and OCP violations.

Higher-Order FunctionsLazy EvaluationRxSwift
0 likes · 19 min read
Functional Programming in Swift: Concepts, Benefits, and Practical Examples
Youzan Coder
Youzan Coder
Sep 21, 2018 · Fundamentals

First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript

The article explains Haskell‑style lazy lists, shows why lazy evaluation is useful, and walks through implementing lazy lists in JavaScript using custom classes, the ES6 iterable protocol, and generator functions, providing examples such as repeat, cycle, iterate, range and lazy operators like map, filter, take, and zip.

Infinite ListIteratorJavaScript
0 likes · 10 min read
First Encounter with Lazy List: Implementing Lazy Evaluation in JavaScript
MaGe Linux Operations
MaGe Linux Operations
Jun 6, 2017 · Fundamentals

Why Python Generators Outshine Iterators: A Beginner’s Guide

This article explains Python iterators and generators, compares their memory usage and performance, shows how to implement them with Fibonacci examples, and introduces generator expressions as a concise alternative to list comprehensions for handling large data streams.

GeneratorsIteratorsLazy Evaluation
0 likes · 5 min read
Why Python Generators Outshine Iterators: A Beginner’s Guide
WeChatFE
WeChatFE
Jul 29, 2016 · Fundamentals

Master JavaScript Currying: Boost Code Quality with Functional Design

This article explains what currying is, its advantages, and provides a generic JavaScript currying function, demonstrating how to transform multi‑parameter functions into single‑parameter chains to improve code reuse, enable lazy evaluation, and enhance overall code quality in functional programming.

JavaScriptLazy Evaluationcode-reuse
0 likes · 10 min read
Master JavaScript Currying: Boost Code Quality with Functional Design
ITPUB
ITPUB
Dec 16, 2015 · Frontend Development

Unlock 37% Faster Lo‑Dash Performance with Lazy Evaluation and Pipelining

Discover how Lo‑Dash’s lazy evaluation and pipelining can cut execution time by over a third, by processing only the necessary elements, avoiding intermediate arrays, and deferring computation until .value() is called, with concrete code examples and performance benchmarks.

JavaScriptLazy EvaluationLo-Dash
0 likes · 6 min read
Unlock 37% Faster Lo‑Dash Performance with Lazy Evaluation and Pipelining