Python Memory Management: The Core of Performance Optimization

Python Memory Management: The Core of Performance Optimization

Hello everyone, I am Mo Yun. Today we will discuss a deeper but very important topic: Python's memory management. Although Python automatically handles memory allocation and deallocation for us, understanding how it works is crucial for writing efficient code. Don't worry, I will use simple metaphors and examples to help you easily understand this seemingly … Read more

Understanding Free() vs Delete() in C++

Understanding Free() vs Delete() in C++

In this topic, we will learn about the free() function and the delete operator in C++. free() Function In C++, the free() function is used to dynamically release memory. It is a library function used in C++, defined in the stdlib.h header file. This library function is used for pointers pointing to memory allocated using … Read more

Detailed Explanation of malloc() and new in C++

Detailed Explanation of malloc() and new in C++

Both malloc() and new serve the same purpose: they are used to allocate memory at runtime. However, malloc() and new differ in syntax. malloc() is a standard library function defined in the stdlib header file, whereas new is an operator. What is new? The new operator is used for memory allocation at runtime. The memory … Read more

C++ Tutorial – Detailed Explanation of Differences Between C++ and Python

C++ Tutorial - Detailed Explanation of Differences Between C++ and Python

What Is C++? C++ is a high-level, general-purpose programming language developed by Bjarne Stroustrup in 1979. It is an extension of the C language, which includes classes. The concept of object-oriented programming was introduced in the C++ language. C++ is also known as an object-oriented programming language. It was originally designed for system programming and … Read more

Rust Through The Eyes Of A Go Developer

Rust Through The Eyes Of A Go Developer

Hi everyone, I’m Tiger. This time, I want to talk about Rust.What’s so great about Rust?As an old user of Go, how do I view Rust?Let’s have a good discussion on this topic today. One of the most troublesome issues for us programmers is memory management, such as dangling pointers, memory leaks, data races, etc., … Read more

Why Is Go’s Performance Inferior to Rust?

Hi everyone! Recently, I came across an interesting question online: Why is Go’s performance not as good as Rust’s? After all, Go has always been marketed for its simplicity and efficiency, while Rust has gained attention for its safety and performance. So, how come Rust outperforms Go in terms of performance? 1. Different Language Design … Read more

Avoid Python Advanced Pitfalls to Improve Your Skills

Avoid Python Advanced Pitfalls to Improve Your Skills

These experiences may help you avoid some debugging pitfalls. Trap 1: Memory Management Issues in Python Python is a programming language that can automatically manage memory, making programming more convenient. Most of the time, Python’s memory management works excellently. However, sometimes Python needs to better understand the actual situation of the program to manage memory … Read more

Exploring The Magical Power Of Process Address Space In Linux

Exploring The Magical Power Of Process Address Space In Linux

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇Technical exchange QQ group of 1000 people, note [public account] for faster approval Address Bus The width of the address bus is generally 32 or 64. Each bus can exhibit either electric or non-electric (weak signal), with an energized bus interpreted by the computer … Read more

In-Depth Understanding of Linux Memory Subsystem

In-Depth Understanding of Linux Memory Subsystem

Linux memory is a computer resource that backend developers need to understand deeply. Proper use of memory helps improve machine performance and stability. This article mainly introduces the organization structure and page layout of Linux memory, the causes of memory fragmentation and optimization algorithms, various memory management methods in the Linux kernel, memory usage scenarios, … Read more

Understanding Linux System Architecture

Understanding Linux System Architecture

The Linux system generally has four main parts: Kernel, shell, file system, and applications. The kernel, shell, and file system together form the basic operating system structure, allowing users to run programs, manage files, and use the system. A part of the hierarchy is shown in Figure 1-1. 1. Linux Kernel The kernel is the … Read more