Tagged articles

Intern

7 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Mar 18, 2026 · Backend Development

Why Java Performance Is Secretly Crushed by Strings: Hidden Memory Killers Most Developers Miss

A production outage caused by OutOfMemoryError revealed that millions of duplicate String objects—originating from HTTP headers, JSON keys, and other common fields—were silently inflating heap usage, and the article shows how to diagnose, optimize, and prevent such hidden String-related memory problems in Java applications.

Escape AnalysisGCIntern
0 likes · 7 min read
Why Java Performance Is Secretly Crushed by Strings: Hidden Memory Killers Most Developers Miss
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jan 18, 2025 · Backend Development

How Java’s String.intern() Boosts Memory Efficiency and Performance

Java’s String.intern() method adds a string to the constant pool, enabling memory sharing and faster reference comparisons; this article explains its behavior, demonstrates usage with code examples, and discusses performance benefits and cautions for optimal use in real‑world applications.

InternJavaMemory optimization
0 likes · 5 min read
How Java’s String.intern() Boosts Memory Efficiency and Performance