Wear Leveling in SSD/UFS: An Overview

Wear Leveling in SSD/UFS: An Overview

Wear Leveling, abbreviated as WL, is a technique used to ensure that each flash memory block in SSD/UFS maintains a similar number of erase and write cycles.Each flash memory block has a limited lifespan, with a maximum number of erase cycles. When the erase count of a block exceeds a certain threshold, that block becomes … Read more

Practical Python Programming: Memory Management and Garbage Collection Mechanisms

Practical Python Programming: Memory Management and Garbage Collection Mechanisms

Follow + Star, learn new Python skills every day Source: Internet Python handles “memory management” very thoughtfully, and most of the time you don’t have to manage it yourself. However, as an advanced developer, understanding its principles will give you more confidence when writing high-performance, long-running, data-intensive programs. This article will help you thoroughly understand: … Read more

How Does Python’s Garbage Collection Mechanism (GC) Work? An Analysis of Reference Counting and Generational Collection Principles

One day, the memory of the online server exploded. I stared at the monitoring chart, thinking that the code was clearly fine. After checking for a long time, I found out that it was actually a memory leak caused by circular references. Objects referencing each other caused Python’s reference counting mechanism to fail, and the … Read more

Liberation of Memory Management in C++: A Detailed Explanation of BDWGC Efficient Garbage Collector Technology

Liberation of Memory Management in C++: A Detailed Explanation of BDWGC Efficient Garbage Collector Technology

In C++ development, manual memory management (<span>new</span>/<span>delete</span>, <span>malloc</span>/<span>free</span>) is a tedious and error-prone task, with memory leaks and dangling pointers being the root cause of many bugs. Although smart pointers (<span>std::shared_ptr</span>, <span>std::unique_ptr</span>) have greatly improved this situation in modern C++, they are not a panacea, as complex circular references or interactions with C code still … Read more

BDWGC: An Efficient Garbage Collector in C++

BDWGC: An Efficient Garbage Collector in C++

BDWGC: An Efficient Garbage Collector in C++ BDWGC (Boehm-Demers-Weiser conservative garbage collector) is an efficient, open-source garbage collector for C and C++ programs. It helps developers automate memory management, avoiding errors that can occur with manual memory management, such as memory leaks and dangling pointers. Project Overview BDWGC is a conservative garbage collection library that … Read more

Python Memory Management: Garbage Collection Mechanisms and Performance Optimization Secrets

Python Memory Management: Garbage Collection Mechanisms and Performance Optimization Secrets

1. Memory Management: Python’s “Invisible Steward” Python memory management operates through automatic garbage collection and reference counting, silently handling: • Object creation and destruction • Memory leak prevention • Circular reference handling • Optimization of large memory objects Core Objective: To achieve a balance between development efficiency and runtime performance, allowing developers to avoid manual … Read more

In-Depth Analysis of Python Memory Management: The Ultimate Guide from Leak Detection to Performance Optimization

In-Depth Analysis of Python Memory Management: The Ultimate Guide from Leak Detection to Performance Optimization

1. Why is Memory Management a Must for Python Engineers? At the 2025 Python Developers Summit, memory-related issues accounted for 73%, with memory leak cases making up as much as 58%. This article will guide you through the underlying principles and industrial-grade solutions of Python memory management through three practical scenarios: memory leak detection, object … Read more

Ten Features of the MoonBit Language

Ten Features of the MoonBit Language

Original Title: Ten Features of the MoonBit Language OSCHINA ↑ Click the blue text to follow us Original Title: Ten Features of the MoonBit Language Original link: https://medium.com/@hivemind_tech/moonbit-language-in-10-features-4dc41a3a1d6cAuthor: Ignacio | Engineer at Hivemind, a German tech company As a Scala developer, I have recently noticed that the market for Scala is gradually shrinking, prompting me … Read more

20 Core Principles of Python: A Comprehensive Introduction to the Underlying World

20 Core Principles of Python: A Comprehensive Introduction to the Underlying World

20 Core Principles of Python: A Comprehensive Introduction to the Underlying World At three o’clock in the morning, I was troubleshooting a memory leak issue when I suddenly realized that the newcomers in the team had no understanding of Python’s garbage collection mechanism. I remember when Guido introduced reference counting in 2000, many were still … Read more

Comprehensive Guide to Python Memory Management

Comprehensive Guide to Python Memory Management

In-Depth Analysis: The Secrets of Python Memory Management, Unveiling the Garbage Collection Mechanism, Here’s How to Write Efficient Code! Introduction Hello everyone! I am a loyal Python enthusiast, and today we will discuss a topic that is often overlooked but extremely important: memory management and garbage collection in Python. Python’s automatic memory management allows developers … Read more