integer-conversion

Tag

Cards List
#integer-conversion

Integer to String Conversion (2014)

Hacker News Top ↗ · 2026-10-18 Cached

A 2014 blog post by L. Pereira exploring increasingly optimized ways to convert integers to strings in C, comparing naive division-based approaches, an in-place reverse-free variant used in Lwan, and Facebook's pair-of-digits lookup table trick that roughly halves the number of divisions for a ~31% speedup.

0 favorites 0 likes
← Back to home

Submit Feedback