Tagged articles
3 articles
Page 1 of 1
BirdNest Tech Talk
BirdNest Tech Talk
Oct 4, 2024 · Fundamentals

How Go’s New unique Package Enables Efficient Interning and Memory Savings

Go 1.23 introduces the unique package, which provides generic interning for comparable values, allowing canonicalization of strings and structs, reducing memory usage and speeding up equality checks; the article walks through a simple map‑based implementation, its limitations, the advanced Handle[T] design, real‑world netip usage, and future prospects.

Garbage CollectionMemory Optimizationcanonicalization
0 likes · 10 min read
How Go’s New unique Package Enables Efficient Interning and Memory Savings
Top Architect
Top Architect
Aug 22, 2024 · Backend Development

Implementing a Generic Tree Conversion Utility in Java

This article explains how to design a flexible TreeNode interface and a TreeUtil class in Java that convert flat collections into hierarchical tree structures, provides multiple static methods for object and JSON tree generation, and discusses optimization techniques for large data sets.

Data StructuresTree Structuregeneric
0 likes · 10 min read
Implementing a Generic Tree Conversion Utility in Java
IT Services Circle
IT Services Circle
Jun 18, 2022 · Backend Development

Investigating an Intermittent Fastjson Generic Parsing Bug in a Java Backend

This article recounts a developer's step‑by‑step investigation of an intermittent Fastjson generic‑type parsing error in a Java backend, detailing the initial symptom, debugging process, code examples, discovery of Fastjson’s cached generic handling bug, and the resolution by upgrading to version 1.2.33.

JSONbugfastjson
0 likes · 10 min read
Investigating an Intermittent Fastjson Generic Parsing Bug in a Java Backend