Tag

Memory Efficiency

0 views collected around this technical thread.

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.

GeneratorIteratorsMemory Efficiency
0 likes · 4 min read
Understanding Python Generator Functions: Syntax, Usage, and Practical Examples
Code Mala Tang
Code Mala Tang
Apr 15, 2025 · Fundamentals

What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators

This article demystifies Python’s for-loop by explaining how iterable objects and iterators work under the hood, illustrating the iterator protocol with code examples, and providing practical custom iterator implementations, common pitfalls, and tips for efficient data processing.

Data ProcessingGeneratorIterable
0 likes · 9 min read
What Really Happens Inside a Python for-loop? Uncover the Magic of Iterators
Test Development Learning Exchange
Test Development Learning Exchange
Jan 16, 2025 · Fundamentals

List Comprehensions vs Generator Expressions in Python: Key Differences

This article compares Python's list comprehensions and generator expressions, highlighting differences in memory usage, execution timing, reusability, suitable scenarios, and how to convert each into other sequence types, with clear code examples for each point.

Memory EfficiencyPythongenerator expression
0 likes · 5 min read
List Comprehensions vs Generator Expressions in Python: Key Differences
Test Development Learning Exchange
Test Development Learning Exchange
Oct 1, 2024 · Fundamentals

Understanding Python Generator Functions and Their Applications in API Automation Testing

This article explains Python generator functions, their memory‑efficient iteration mechanism, and demonstrates through multiple examples—including basic generators, Fibonacci sequences, large file processing, HTTP streaming, and API test data generation—how they can streamline and optimize interface automation testing workflows.

API testingAutomationGenerator
0 likes · 10 min read
Understanding Python Generator Functions and Their Applications in API Automation Testing
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 SequencesMemory Efficiency
0 likes · 7 min read
10 Practical Scenarios Demonstrating Lazy Evaluation and Infinite Sequence Handling in Python
Test Development Learning Exchange
Test Development Learning Exchange
Aug 3, 2023 · Fundamentals

10 Practical Scenarios of Lazy Evaluation and Infinite Sequences in Python

This article explains lazy evaluation in functional programming and presents ten Python code examples that demonstrate how generators and iterators can efficiently handle infinite sequences and large‑scale data by computing values only when needed.

GeneratorsInfinite SequencesMemory Efficiency
0 likes · 7 min read
10 Practical Scenarios of Lazy Evaluation and Infinite Sequences in Python
DataFunSummit
DataFunSummit
Jul 22, 2023 · Information Security

HG‑LDP: A Memory‑Efficient Framework for High‑Frequency Item Statistics under Local Differential Privacy

This article introduces the HG‑LDP framework, which combines local differential privacy with the HeavyGuardian data structure to enable accurate, privacy‑preserving high‑frequency item statistics on streaming data while using only limited memory, and evaluates four algorithmic variants (BGR, DSR, BDR, CNR) through extensive experiments on synthetic and real‑world datasets.

HeavyGuardianHigh-Frequency ItemLocal Differential Privacy
0 likes · 19 min read
HG‑LDP: A Memory‑Efficient Framework for High‑Frequency Item Statistics under Local Differential Privacy
AntTech
AntTech
May 24, 2022 · Artificial Intelligence

WPipe: Group‑Based Interleaved Pipeline Parallelism for Large‑Scale DNN Training

The paper introduces WPipe, a group‑based interleaved pipeline parallelism method that reduces memory overhead and weight‑update latency compared with PipeDream‑2BW, achieving up to 1.4× speed‑up and 36% lower memory usage while preserving model accuracy on large‑scale DNNs.

Memory EfficiencyWPipedeep learning
0 likes · 13 min read
WPipe: Group‑Based Interleaved Pipeline Parallelism for Large‑Scale DNN Training
Architect
Architect
Dec 2, 2015 · Databases

Redis vs Memcached: Clarifications and Comparative Analysis

This article critically examines common claims that Memcached is superior for caching by comparing its design, threading, disk I/O, memory efficiency, LRU behavior, smart caching features, persistence, replication, observability, and Lua scripting capabilities against Redis, concluding that the two systems have distinct trade‑offs depending on use case.

CachingLua scriptingMemcached
0 likes · 9 min read
Redis vs Memcached: Clarifications and Comparative Analysis
Qunar Tech Salon
Qunar Tech Salon
Dec 12, 2014 · Fundamentals

Unrolled List, Bloom Filter, and Skip List: Concepts, Implementations, and Trade‑offs

This article introduces three advanced data structures—Unrolled List, Bloom Filter, and Skip List—explaining their design motivations, memory and performance trade‑offs, and providing C++ code snippets to illustrate their core implementations.

Bloom FilterData StructuresMemory Efficiency
0 likes · 8 min read
Unrolled List, Bloom Filter, and Skip List: Concepts, Implementations, and Trade‑offs