Tagged articles
23 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Mar 20, 2026 · Fundamentals

Save Up to 80% Memory in Python with 5 Built‑In Tricks

The article shows how to diagnose and dramatically cut Python’s memory usage by using built‑in tools such as sys.getsizeof, psutil, __slots__, generator expressions, memory‑mapped files (mmap) and string interning, providing concrete code examples, benchmarks and practical tips to avoid common pitfalls.

Memory OptimizationPythonString Interning
0 likes · 15 min read
Save Up to 80% Memory in Python with 5 Built‑In Tricks
IT Services Circle
IT Services Circle
Feb 13, 2026 · Fundamentals

5 Proven Python Memory‑Optimization Patterns to Slash RAM Usage

Learn five practical Python techniques—streaming large files, using generator pipelines, leveraging __slots__, avoiding temporary objects in loops, and reusing buffers—that together can reduce memory consumption by up to 70% and dramatically improve performance when processing gigabyte‑scale datasets.

GeneratorsMemory OptimizationPython
0 likes · 9 min read
5 Proven Python Memory‑Optimization Patterns to Slash RAM Usage
Data STUDIO
Data STUDIO
Feb 9, 2026 · Fundamentals

5 Python Memory‑Optimization Patterns That Cut Usage by 70%

The article walks through five concrete Python techniques—streaming file reads, generator expressions, __slots__, avoiding temporary objects in loops, and reusing buffers—showing code examples and measured memory reductions that together lowered overall RAM consumption by about 70%.

GeneratorsMemory OptimizationProfiling
0 likes · 9 min read
5 Python Memory‑Optimization Patterns That Cut Usage by 70%
Data STUDIO
Data STUDIO
Jan 21, 2026 · Fundamentals

Unlock Python’s Hidden Magic: Dunder Methods That Make Your Code Feel Native

This article introduces essential Python dunder methods such as __missing__, __fspath__, __call__, __slots__, __enter__/__exit__, __aiter__/__anext__, __getattr__/__getattribute__, explaining their problem contexts, concrete implementations, performance benefits, and best‑practice trade‑offs with clear code examples.

__call____missing____slots__
0 likes · 17 min read
Unlock Python’s Hidden Magic: Dunder Methods That Make Your Code Feel Native
Data STUDIO
Data STUDIO
Jan 9, 2026 · Fundamentals

6 Hidden Python Features That Can Double Your Coding Efficiency

This article showcases six powerful yet often overlooked Python standard‑library features—pathlib, contextlib, __slots__, functools.lru_cache, generator pipelines, and dataclasses—demonstrating how they simplify code, boost performance, reduce memory usage, and make scripts more maintainable.

GeneratorsPython__slots__
0 likes · 11 min read
6 Hidden Python Features That Can Double Your Coding Efficiency
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 17, 2025 · Fundamentals

Unlock Massive Memory Savings in Python with __slots__: A Complete Guide

This article explains how Python's default class memory overhead can be dramatically reduced using the __slots__ magic attribute, providing detailed code examples, memory and speed benchmarks, practical use cases, limitations, and best‑practice recommendations for developers who need high‑performance, memory‑efficient objects.

Memory OptimizationPython__slots__
0 likes · 12 min read
Unlock Massive Memory Savings in Python with __slots__: A Complete Guide
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 30, 2025 · Databases

How to Reshard Slots in a Redis Cluster

This article explains the process of moving hash slots between nodes in a Redis cluster using the redis-cli --cluster reshard command, detailing the required parameters, interactive steps, and verification of successful slot migration.

ClusterData MigrationResharding
0 likes · 6 min read
How to Reshard Slots in a Redis Cluster
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 16, 2025 · Frontend Development

Creating a Universal Functional Modal Utility for Vue 3

This article demonstrates how to build a highly reusable, function‑based modal system in Vue 3 that supports lazy loading, prop passing, event binding, provide/inject data injection, custom slots, and method exposure, allowing developers to display any modal component with a single function call.

Functional ComponentProvide/InjectTypeScript
0 likes · 13 min read
Creating a Universal Functional Modal Utility for Vue 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 10, 2024 · Frontend Development

Understanding Web Components: Core Concepts, Custom Elements, Shadow DOM, Slots, and Templates

This article introduces Web Components—a W3C‑standardized technology supported by all major browsers—explaining its core concepts (Custom Elements, Shadow DOM, Templates, Slots), providing step‑by‑step code examples, discussing lifecycle callbacks, compatibility, polyfills, and how it compares with frameworks like React and Vue.

Shadow DOM__slots__custom elements
0 likes · 22 min read
Understanding Web Components: Core Concepts, Custom Elements, Shadow DOM, Slots, and Templates
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 29, 2024 · Frontend Development

Enhancing Element Plus ElTable with Vue 3.3 Generic Components and defineSlots for Strong Type Safety

This article explains how to combine Vue 3.3 generic components and the new defineSlots feature to create a lightweight, column‑configurable wrapper around Element Plus's ElTable that provides full TypeScript type hints for row data and custom column slots, improving maintainability and developer experience.

ElTableGeneric ComponentTypeScript
0 likes · 18 min read
Enhancing Element Plus ElTable with Vue 3.3 Generic Components and defineSlots for Strong Type Safety
TAL Education Technology
TAL Education Technology
Jul 6, 2023 · Frontend Development

Introduction to Web Components: Custom Elements, Shadow DOM, Templates, and Slots

This article introduces Web Components, explains the three core technologies—custom elements, Shadow DOM, and templates with slots—provides detailed code examples for each, discusses lifecycle callbacks, demonstrates encapsulation benefits, and offers practical guidance on using them across modern front‑end frameworks.

Shadow DOM__slots__custom elements
0 likes · 12 min read
Introduction to Web Components: Custom Elements, Shadow DOM, Templates, and Slots
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2021 · Fundamentals

Python Tips: String Manipulation, Iterator Slicing, Context Managers, Slots, Resource Limits, and More

This article presents a collection of practical Python techniques—including string cleaning with translation tables, iterator slicing with itertools, skipping file headers, keyword‑only arguments, custom context‑manager objects, memory‑saving __slots__, CPU and memory resource limits, export control via __all__, and simplified total ordering—illustrated with concise code examples.

IteratorPythonString Manipulation
0 likes · 9 min read
Python Tips: String Manipulation, Iterator Slicing, Context Managers, Slots, Resource Limits, and More
MaGe Linux Operations
MaGe Linux Operations
Oct 12, 2020 · Fundamentals

How to Slash Python Memory Usage with __slots__ and Size Inspection

This article explains how Python's dynamic objects consume hidden memory, demonstrates measuring object sizes with sys.getsizeof and a recursive get_size function, and shows how using __slots__ can dramatically reduce memory footprints while discussing trade‑offs and practical code examples.

Memory ManagementPython__slots__
0 likes · 9 min read
How to Slash Python Memory Usage with __slots__ and Size Inspection
Java Captain
Java Captain
Oct 11, 2017 · Fundamentals

Understanding the Java Virtual Machine Stack and Bytecode Instructions

This article explains the structure and operation of the JVM stack, including stack frames, local variable tables, operand stacks, slots, and common bytecode instructions, providing code examples and visual aids to help readers grasp how Java bytecode is executed on the stack.

JavaStack__slots__
0 likes · 13 min read
Understanding the Java Virtual Machine Stack and Bytecode Instructions
JD.com Experience Design Center
JD.com Experience Design Center
Aug 2, 2017 · Frontend Development

Mastering Vue Component Hierarchies: Avoid Common Pitfalls with Slots

This article examines common mistakes when nesting Vue.js components—such as overly deep parent‑child structures and cumbersome event communication—and demonstrates how to streamline component design using reusable child components and the slot content‑distribution mechanism, complete with practical code examples and visual diagrams.

Component ArchitectureFrontend OptimizationVue.js
0 likes · 13 min read
Mastering Vue Component Hierarchies: Avoid Common Pitfalls with Slots
Architect
Architect
Jul 3, 2016 · Databases

Understanding Redis Cluster Partitioning Implementation

This article explains how Redis Cluster automatically distributes data across nodes, how clients locate the correct node using slot hashing and hash tags, and how resharding and slot migration are performed without downtime, providing a detailed overview of the partitioning mechanism.

ClusterKey hashingPartitioning
0 likes · 10 min read
Understanding Redis Cluster Partitioning Implementation