Tagged articles
5 articles
Page 1 of 1
IT Services Circle
IT Services Circle
May 19, 2026 · Fundamentals

Can a Single String Constant Crash the Go Compiler with OOM?

A Go compiler issue shows that an exponentially growing string constant can exhaust memory during compilation, causing an out‑of‑memory crash, and the article explains how the constant is built, why it differs from variables, historical related bugs, the core team's mitigation plans, and practical safeguards for code generators and online compilers.

GoOOMcode-generation
0 likes · 10 min read
Can a Single String Constant Crash the Go Compiler with OOM?
DataFunSummit
DataFunSummit
Dec 9, 2024 · Big Data

Spark SQL Expression Optimizations: LIKE ALL/ANY, TRIM Function Improvements, and Constant Folding

This article examines Spark SQL expression-level optimizations, focusing on redesigning LIKE ALL and LIKE ANY to reduce memory and stack usage, refactoring the TRIM function for better code reuse and performance, and implementing constant folding to cache computed constant expressions, thereby enhancing query efficiency in big-data workloads.

Big DataExpression OptimizationSpark SQL
0 likes · 16 min read
Spark SQL Expression Optimizations: LIKE ALL/ANY, TRIM Function Improvements, and Constant Folding
macrozheng
macrozheng
Jul 3, 2023 · Fundamentals

Why Java Creates Only One String Object: Understanding Constant Folding

This article explains how Java's compiler optimizes string concatenation through constant folding, the rules that define compile‑time constants, and why only a single String object is created in many seemingly multiple‑object scenarios.

Compile-time ConstantJVMString pool
0 likes · 11 min read
Why Java Creates Only One String Object: Understanding Constant Folding
Java Backend Technology
Java Backend Technology
Oct 12, 2016 · Backend Development

Java Compile-Time vs Runtime: Constant Folding, Overloading, Generics

This article explains key Java concepts such as compile‑time constant folding, the distinction between compile‑time and runtime calculations, method overloading versus overriding, generics type erasure, annotations, exception handling, and aspect‑oriented programming, while illustrating each topic with clear code examples.

Compile-timeGenericsMethod Overloading
0 likes · 12 min read
Java Compile-Time vs Runtime: Constant Folding, Overloading, Generics