Tag

String Interning

1 views collected around this technical thread.

Lobster Programming
Lobster Programming
Dec 20, 2024 · Fundamentals

Unlocking Java’s Constant Pools: Class, Runtime, and String Explained

This article explains Java’s constant pools, detailing the class constant pool stored in .class files, its transformation into the runtime constant pool during JVM loading, and the specialized string constant pool that optimizes memory usage, including recent changes moving it to heap memory.

Constant PoolJVMJava
0 likes · 3 min read
Unlocking Java’s Constant Pools: Class, Runtime, and String Explained
Python Programming Learning Circle
Python Programming Learning Circle
Jun 21, 2022 · Fundamentals

Understanding Common Python Pitfalls and Unexpected Behaviors

This article explores a collection of surprising Python quirks—including string interning, the difference between is and ==, function return semantics, for‑loop variable handling, triple‑quoted strings, and in‑place operators—illustrating why even experienced developers encounter hidden pitfalls during everyday coding.

FundamentalsString Interningoperators
0 likes · 8 min read
Understanding Common Python Pitfalls and Unexpected Behaviors
Python Programming Learning Circle
Python Programming Learning Circle
Dec 12, 2020 · Fundamentals

Understanding Python Object Pooling, Integer Caching, and Interning Mechanisms

This article explains why identical integers and short strings may reference the same object in Python, how the small‑integer cache and string interning work, and how compilation units and constant pools affect object identity across interactive sessions and script files.

Compilation UnitConstant PoolObject Pooling
0 likes · 8 min read
Understanding Python Object Pooling, Integer Caching, and Interning Mechanisms
Java Captain
Java Captain
Dec 18, 2017 · Fundamentals

Understanding Java Constant Pool: Theory and Practice

This article explains the Java constant pool, distinguishing static and runtime pools, demonstrates string interning behavior with code examples, and shows how to inspect class files and memory settings to observe constant pool effects in the JVM.

Constant PoolJVMJava
0 likes · 9 min read
Understanding Java Constant Pool: Theory and Practice