Tagged articles
56 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Feb 9, 2026 · Fundamentals

Why Misusing std::shared_ptr Slows Your C++ Code and How to Fix It

This article explores common pitfalls when using std::shared_ptr in C++, including unnecessary copying, extra heap allocations, cyclic references, and subtle memory retention with make_shared, provides benchmark comparisons, and offers practical guidelines such as preferring const‑reference passing, using std::make_shared, and employing weak_ptr to break cycles.

c++memory-managementperformance
0 likes · 10 min read
Why Misusing std::shared_ptr Slows Your C++ Code and How to Fix It
DevOps Coach
DevOps Coach
Dec 23, 2025 · Backend Development

How Go 1.22’s Arena Gives Rust‑Level Memory Control Without the Pain

The article explains how Go 1.22’s new experimental arena feature provides deterministic, zero‑GC memory management similar to Rust’s ownership model, compares the two languages’ approaches, shows practical code examples, and discusses the impact on backend development performance and safety.

Arenamemory-managementperformance
0 likes · 8 min read
How Go 1.22’s Arena Gives Rust‑Level Memory Control Without the Pain
php Courses
php Courses
Nov 28, 2025 · Backend Development

Efficiently Read Large Files in PHP with fread: Tips & Code Example

This guide explains how to safely process massive files in PHP by reading them line‑by‑line with fread (or fgets), offering practical code, memory‑saving techniques, buffer usage, file seeking, and PHP.ini adjustments to prevent out‑of‑memory errors.

Backendfile-handlingfread
0 likes · 4 min read
Efficiently Read Large Files in PHP with fread: Tips & Code Example
Liangxu Linux
Liangxu Linux
Oct 28, 2025 · Fundamentals

8 Must‑Know Embedded Interview Questions and How to Ace Them

This article presents eight high‑frequency embedded‑system interview questions, explains the underlying concepts such as boot process, interrupt handling, stack overflow detection, struct alignment, bit‑banding, dynamic memory risks, volatile usage, and provides concise C code examples and best‑practice answers to help candidates succeed in technical interviews.

Cortex-MInterruptsc++
0 likes · 8 min read
8 Must‑Know Embedded Interview Questions and How to Ace Them
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 27, 2025 · Fundamentals

How to Supercharge Python: Proven Performance Optimization Techniques

Discover a comprehensive guide to dramatically improve Python program speed and memory usage through algorithmic refinements, profiling tools, concurrency models, and advanced techniques like generators, slots, and third‑party libraries, complete with real‑world code examples and performance benchmarks.

Profilingconcurrencymemory-management
0 likes · 19 min read
How to Supercharge Python: Proven Performance Optimization Techniques
php Courses
php Courses
Jun 25, 2025 · Backend Development

Master CGO: Seamlessly Integrate C Libraries into Go Projects

This comprehensive guide explains CGO fundamentals, demonstrates basic and advanced usage with practical code examples, covers type conversion, calling C standard libraries, handling external C files, callbacks, struct passing, memory‑management best practices, real‑world scenarios, limitations, and alternative approaches for Go developers.

C integrationGoInterop
0 likes · 9 min read
Master CGO: Seamlessly Integrate C Libraries into Go Projects
Code Mala Tang
Code Mala Tang
Jun 8, 2025 · Fundamentals

Boost Python Performance: 10 Proven Memory Optimization Tricks

Learn how hidden memory leaks, inefficient data structures, and poor import practices can slow Python scripts, and apply practical techniques—such as using weakref, generators, __slots__, lazy imports, and profiling tools—to dramatically reduce memory usage and speed up execution.

Profilingbest-practicesmemory-management
0 likes · 11 min read
Boost Python Performance: 10 Proven Memory Optimization Tricks
Cognitive Technology Team
Cognitive Technology Team
Apr 9, 2025 · Backend Development

Understanding and Resolving java.lang.OutOfMemoryError: reason stack_trace_with_native_method

This article explains why the Java OutOfMemoryError with reason stack_trace_with_native_method occurs when native method calls exhaust thread stack memory, and provides diagnostic steps and practical solutions such as analyzing stack traces, using OS tools, optimizing native code, adjusting JVM memory settings, and avoiding recursive native calls.

memory-managementnative-methods
0 likes · 4 min read
Understanding and Resolving java.lang.OutOfMemoryError: reason stack_trace_with_native_method
php Courses
php Courses
Jul 2, 2024 · Backend Development

Reading Large Files in PHP Using fread Line by Line

This article explains how to efficiently read large files in PHP by using the fread function to process the file line by line, includes code examples, and discusses additional techniques such as buffering, fseek positioning, and increasing memory limits to avoid memory overflow.

Backendfile-handlingfread
0 likes · 4 min read
Reading Large Files in PHP Using fread Line by Line
Test Development Learning Exchange
Test Development Learning Exchange
Jun 1, 2024 · Backend Development

Using Python Generator Functions for Efficient API Automation Testing

This article demonstrates how Python generator functions can be applied in API automation testing to process large data streams, batch requests, infinite sequences, file handling, dynamic test data generation, recursive file traversal, lazy calculations, data filtering, response processing, retry logic, and test report creation, thereby improving memory efficiency and test flexibility.

api-testinggeneratormemory-management
0 likes · 6 min read
Using Python Generator Functions for Efficient API Automation Testing
MaGe Linux Operations
MaGe Linux Operations
Apr 26, 2024 · Backend Development

Boost Go Performance: Proven Memory and Concurrency Optimizations

This article presents practical Go performance tips, covering memory‑allocation strategies, slice and map pre‑allocation, stack management, GC reduction, goroutine‑pool usage, avoiding blocking syscalls, and efficient string handling to minimize latency and resource consumption.

memory-managementperformance
0 likes · 10 min read
Boost Go Performance: Proven Memory and Concurrency Optimizations
Liangxu Linux
Liangxu Linux
Apr 22, 2024 · Operations

How to Safely Clear Linux RAM Cache, Buffers, and Swap – Best Practices

This guide explains Linux memory management fundamentals and provides step‑by‑step commands for safely clearing RAM caches, file system buffers, and swap space, while highlighting the risks of doing so on production servers and offering advanced tuning techniques.

Swapcache-clearingmemory-management
0 likes · 10 min read
How to Safely Clear Linux RAM Cache, Buffers, and Swap – Best Practices
php Courses
php Courses
Mar 6, 2024 · Backend Development

Reading Large Files in PHP Line by Line with fread

This article explains how to efficiently read large files in PHP using the fread function line by line, providing code examples, buffering tips, fseek usage, and memory‑limit adjustments to avoid memory overflow while processing massive data streams.

file-handlingfreadlarge files
0 likes · 4 min read
Reading Large Files in PHP Line by Line with fread
Liangxu Linux
Liangxu Linux
Feb 5, 2024 · Fundamentals

Why Is the First memset So Slow? Exploring Page Faults, TLB, and Huge Pages

The article explains why the initial memset on a newly‑allocated 1 GB buffer is much slower than subsequent calls, detailing how page‑fault handling, TLB misses, and the MMU’s multi‑level page tables cause overhead, and demonstrates optimizations such as using huge pages, MAP_POPULATE, and pre‑mapping to eliminate the slowdown.

Huge PagesPage FaultTLB
0 likes · 20 min read
Why Is the First memset So Slow? Exploring Page Faults, TLB, and Huge Pages
php Courses
php Courses
Dec 1, 2023 · Backend Development

Using PHP Generators to Process Large Data Sets and Prevent Memory Exhaustion

This article explains how PHP developers can use generators to iterate over large data sets without exhausting memory, covering the concept, syntax with the yield keyword, step‑by‑step examples, converting regular functions, handling key‑value pairs, sending data back, returning values, and a real‑world file‑reading use case.

BackendGeneratorsLarge Data
0 likes · 5 min read
Using PHP Generators to Process Large Data Sets and Prevent Memory Exhaustion
Test Development Learning Exchange
Test Development Learning Exchange
Aug 2, 2023 · Fundamentals

Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples

This article explains Python's automatic garbage collection mechanisms, including reference counting and cyclic garbage collection, and presents ten practical code snippets demonstrating how to inspect reference counts, list objects, trace memory usage, and employ profiling tools such as tracemalloc, memory_profiler, pympler, and objgraph to detect leaks and optimize memory usage.

code-examplesgarbage-collectionmemory-management
0 likes · 4 min read
Practical Python Garbage Collection and Memory Analysis: 10 Useful Code Examples
ByteFE
ByteFE
Jul 26, 2023 · Frontend Development

Browser Fundamentals: Process Architecture, V8 Engine, Memory Management, Event Loop, Rendering, and Security

This comprehensive guide explains browser fundamentals, covering process and thread architecture, single‑ and multi‑process models, the V8 engine's data types, property ordering, memory allocation and garbage collection, compilation stages, the event loop, rendering pipeline, performance optimization techniques, and security mechanisms.

BrowserRenderingV8
0 likes · 43 min read
Browser Fundamentals: Process Architecture, V8 Engine, Memory Management, Event Loop, Rendering, and Security
Sohu Tech Products
Sohu Tech Products
Sep 14, 2022 · Databases

Understanding Redis Memory Fragmentation and How to Manage It

This article explains why Redis may show high OS‑allocated memory despite low data usage, describes the causes of memory fragmentation, and provides practical steps—including configuration changes and automatic defragmentation settings—to diagnose and mitigate fragmentation for stable performance.

Memory Fragmentationcachingdatabases
0 likes · 9 min read
Understanding Redis Memory Fragmentation and How to Manage It
Java Backend Technology
Java Backend Technology
Jun 10, 2022 · Backend Development

How MemorySafeLBQ Prevents OOM in Java Thread Pools – A Deep Dive

This article explores the design and implementation of MemoryLimitedLBQ and MemorySafeLBQ, two custom LinkedBlockingQueue variants that limit memory usage to avoid Out‑Of‑Memory errors in Java thread pools, comparing their mechanisms, instrumentation dependencies, and practical usage in open‑source projects.

Instrumentationconcurrencylinkedblockingqueue
0 likes · 13 min read
How MemorySafeLBQ Prevents OOM in Java Thread Pools – A Deep Dive
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2022 · Fundamentals

Python Interview Questions and Answers: Memory Management, Lambda, List Operations, Exceptions, and More

This article presents a collection of common Python interview questions covering memory management mechanisms, lambda functions, tuple/list conversion, duplicate removal techniques, sorting tricks, object copying methods, exception handling, the pass statement, range usage, regex operations, match vs search differences, and random number generation, each accompanied by clear explanations and code examples.

Listexception-handlingmemory-management
0 likes · 10 min read
Python Interview Questions and Answers: Memory Management, Lambda, List Operations, Exceptions, and More
Liangxu Linux
Liangxu Linux
May 29, 2022 · Operations

Why Linux Triggers OOM Killer and How to Manage Memory Reclamation

This article explains Linux virtual memory, the page‑fault allocation process, the two memory‑reclaim paths (kswapd and direct reclaim), OOM killer scoring, swappiness tuning, NUMA‑aware reclamation, and practical steps to protect critical processes from being killed.

LinuxNUMAOOM killer
0 likes · 19 min read
Why Linux Triggers OOM Killer and How to Manage Memory Reclamation
ELab Team
ELab Team
Apr 17, 2022 · Frontend Development

Mastering JavaScript Memory: Types, Garbage Collection, and Leak Prevention

This article explains JavaScript's memory allocation across code, stack, and heap spaces, details how different data types are stored, describes garbage collection mechanisms, and provides practical steps to detect and fix memory leaks, including a React-specific example.

garbage-collectionmemory-leakmemory-management
0 likes · 18 min read
Mastering JavaScript Memory: Types, Garbage Collection, and Leak Prevention
Selected Java Interview Questions
Selected Java Interview Questions
Apr 15, 2022 · Fundamentals

Why Setting Unused Objects to null Can Influence Java Garbage Collection

This article explains the misconception that manually assigning null to unused objects always helps Java garbage collection, demonstrates with concrete JVM examples how stack slots and reachability analysis affect object reclamation, and shows when null‑assignment or slot reuse actually makes a difference.

garbage-collectionjavamemory-management
0 likes · 10 min read
Why Setting Unused Objects to null Can Influence Java Garbage Collection
Sohu Tech Products
Sohu Tech Products
Feb 23, 2022 · Mobile Development

iOS Closures – Part Two

This article provides an in‑depth exploration of Swift closures on iOS, covering their definition, three forms, practical use cases, underlying SIL generation, capture lists, context capture, storage mechanisms, escaping and autoclosure variants, and important memory‑management considerations such as reference cycles.

Capture Listautoclosureclosure
0 likes · 17 min read
iOS Closures – Part Two
JD Retail Technology
JD Retail Technology
Jun 28, 2021 · Frontend Development

Understanding Flutter Image Loading, Caching, and Memory Optimization

This article explains how Flutter loads and caches images, analyzes the underlying source code of key classes such as PaintingBinding, ImageCache, ImageProvider, and RenderImage, and provides practical techniques for reducing memory usage and preventing OOM in large Flutter applications.

FlutterImage Loadingcaching
0 likes · 13 min read
Understanding Flutter Image Loading, Caching, and Memory Optimization
Programmer DD
Programmer DD
Jun 25, 2021 · Fundamentals

Can Other Threads Keep Running After a Java Thread Hits OOM?

This article analyzes a Meituan interview question about whether other threads can continue when one thread throws a Java OutOfMemoryError, explains different OOM types, provides a sample program that triggers heap OOM, and demonstrates that remaining threads keep running while memory is reclaimed.

OutOfMemoryErrormemory-managementmultithreading
0 likes · 5 min read
Can Other Threads Keep Running After a Java Thread Hits OOM?
ITPUB
ITPUB
Apr 15, 2021 · Databases

Master Redis Memory Limits and Eviction: Configuring Maxmemory, LRU & LFU Explained

This article explains how to set Redis's maximum memory usage via configuration files or runtime commands, details all built‑in eviction policies, demonstrates retrieving and changing these policies, and dives into the LRU and LFU algorithms—including Java sample code and Redis's approximate LRU implementation.

LFULRUdatabases
0 likes · 11 min read
Master Redis Memory Limits and Eviction: Configuring Maxmemory, LRU & LFU Explained
Top Architect
Top Architect
Apr 8, 2021 · Fundamentals

Java 8 Memory Structure Overview

This article explains the Java 8 memory architecture, detailing the differences between JVM-managed memory and native memory, describing each runtime data area such as the program counter, JVM stack, native method stack, heap, method area, and direct memory, and answering common questions about variable storage, native methods, literals and symbolic references.

Garbage CollectionRuntime Data Areajava8
0 likes · 13 min read
Java 8 Memory Structure Overview
ITPUB
ITPUB
Dec 12, 2020 · Operations

Why Does Linux Need Swapping? Uncovering Memory Management Mechanics

This article explains Linux's swapping mechanism, detailing how the kernel moves rarely used memory pages to disk to handle memory shortage and idle memory, the underlying allocation paths, key parameters, and the trade‑offs involved for system performance and stability.

SwappingVirtual Memorymemory-management
0 likes · 11 min read
Why Does Linux Need Swapping? Uncovering Memory Management Mechanics
Wukong Talks Architecture
Wukong Talks Architecture
Nov 20, 2020 · Backend Development

Understanding PHP Garbage Collection and Reference Counting

This article explains PHP's garbage collection mechanism, detailing how reference counting works, the role of zval structures, the identification and reclamation process, and provides source code insights to compare PHP's approach with Java's garbage collection.

PHPbackend-developmentgarbage-collection
0 likes · 9 min read
Understanding PHP Garbage Collection and Reference Counting
ITPUB
ITPUB
Jul 3, 2020 · Fundamentals

Master Python File I/O: Reading, Writing, and Mode Pitfalls Explained

This guide walks through Python file I/O by comparing manual Windows text handling to code, explains file handles, demonstrates reading and writing with various modes, clarifies read vs. readline vs. readlines, and shows how to efficiently process large files without exhausting memory.

IteratorPythonRead/Write
0 likes · 12 min read
Master Python File I/O: Reading, Writing, and Mode Pitfalls Explained
Programmer DD
Programmer DD
Jun 1, 2020 · Fundamentals

Why Setting Unused Objects to null Matters in Java: A Deep Dive into JVM GC

This article demystifies the common advice of setting unused objects to null in Java by examining JVM garbage collection, runtime stack behavior, and stack slot reuse, demonstrating through code examples how null assignments or variable reuse affect object reclamation.

garbage-collectionmemory-managementnull assignment
0 likes · 9 min read
Why Setting Unused Objects to null Matters in Java: A Deep Dive into JVM GC
Amap Tech
Amap Tech
Nov 6, 2019 · Frontend Development

Front‑End Memory Management, Data Structures, and Performance Optimization

To handle the massive memory and CPU demands of modern front‑end map annotations, the article explains JavaScript’s stack‑heap model, object hash‑table storage, and the trade‑offs of plain arrays, TypedArray, DataView, and SharedArrayBuffer, showing that contiguous memory structures and Web‑Worker off‑loading dramatically improve performance and reduce allocations.

SharedArrayBufferTypedArrayWebWorker
0 likes · 17 min read
Front‑End Memory Management, Data Structures, and Performance Optimization
360 Tech Engineering
360 Tech Engineering
Oct 18, 2019 · Backend Development

Understanding PHP unset(): Does It Really Release Memory?

This article examines whether PHP's unset() function truly frees memory by debunking common myths, demonstrating verification methods, analyzing the Zend engine's memory manager, and presenting practical code examples that reveal how different variable types affect memory usage after unsetting.

Zendmemory-managementunset
0 likes · 9 min read
Understanding PHP unset(): Does It Really Release Memory?
MaGe Linux Operations
MaGe Linux Operations
Oct 14, 2018 · Fundamentals

Understanding Linux: Kernel, Memory, Processes, and File Systems Explained

This article provides a comprehensive overview of Linux fundamentals, covering the kernel architecture, virtual memory management, process scheduling and inter‑process communication, the hierarchical file system and VFS layer, device drivers, networking, shell variants, partitioning, mounting, and essential command‑line tools.

Mountfile systemkernel
0 likes · 33 min read
Understanding Linux: Kernel, Memory, Processes, and File Systems Explained
MaGe Linux Operations
MaGe Linux Operations
Sep 27, 2018 · Backend Development

Master Python Backend Essentials: Generators, GIL, Django, and Linux Ops

Explore core Python backend techniques—from efficient file reading with generators and iterator nuances, through memory management and the Global Interpreter Lock, to practical Django deployment, Nginx proxying, Tornado async I/O, essential Linux commands, and fundamental data structures and sorting methods.

Pythonmemory-managementperformance
0 likes · 13 min read
Master Python Backend Essentials: Generators, GIL, Django, and Linux Ops
Java Backend Technology
Java Backend Technology
Jul 9, 2018 · Backend Development

Redis Deep Dive: Why It’s Fast, Common Pitfalls, and Best Practices

This article provides a comprehensive overview of Redis, explaining why it’s chosen for performance and concurrency, how its single‑threaded design achieves speed, the various data types and their use cases, expiration and eviction strategies, consistency challenges with databases, and solutions for cache penetration, avalanche, and key‑concurrency issues.

Consistencycachingdata-structures
0 likes · 15 min read
Redis Deep Dive: Why It’s Fast, Common Pitfalls, and Best Practices
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 21, 2018 · Backend Development

Optimize Java Backend: Memory, JSP Caching, and Faster Collections

This article presents practical Java backend optimization techniques, covering servlet session memory management, JSP buffering, include strategies, efficient HashMap traversal, array versus ArrayList choices, and best practices for strings, splits, and general code performance.

JSPjavamemory-management
0 likes · 12 min read
Optimize Java Backend: Memory, JSP Caching, and Faster Collections
MaGe Linux Operations
MaGe Linux Operations
Feb 28, 2018 · Fundamentals

Top Python Interview Questions and Expert Answers Explained

This article compiles over ten essential Python interview questions covering memory management, lambda functions, data structure conversions, duplicate removal, sorting techniques, object copying, exception handling, pass statements, range usage, regex operations, random number generation, static analysis tools, global variables, and string quoting conventions.

Lambdacoding interviewinterview
0 likes · 11 min read
Top Python Interview Questions and Expert Answers Explained
Beike Product & Technology
Beike Product & Technology
Jul 9, 2017 · Backend Development

Analyzing PHP foreach Memory Behavior and Array Internals

This article examines how PHP's foreach construct consumes memory under different reference modes, explains the internal structure of PHP arrays, buckets, and zvals, and provides practical recommendations for choosing reference or value iteration to minimize memory usage.

Arraybackend-developmentforeach
0 likes · 17 min read
Analyzing PHP foreach Memory Behavior and Array Internals
Qunar Tech Salon
Qunar Tech Salon
Jun 13, 2016 · Backend Development

Java Performance Optimization Tips

This article presents a comprehensive set of Java performance optimization techniques, covering proper use of singletons, avoiding static variables, minimizing object creation, leveraging final modifiers, using local variables, selecting appropriate data structures, reducing synchronization, and employing efficient coding patterns such as System.arraycopy and bit‑shift operations.

best-practicesjavamemory-management
0 likes · 17 min read
Java Performance Optimization Tips