AI news
Refactoring a Class Saves 2.9G Memory in the JVM?
Data Structure Refactoring That Saved Nearly 3 GB JVM Heap Memory in Production This article explains how we refactored a core class’s data structure from `HashMap>` → FastUtil `Long2ObjectOpenHashMap`. By leveraging business data characteristics—tags as small integers, sparsely distributed—we replaced `HashSet` with sorted `int[]` arrays plus binary