Code Wrench
Code Wrench
Sep 22, 2025 · Backend Development

How to Process a 1‑Billion‑Row Text File in Go 30× Faster (3.4 s)

This article walks through a step‑by‑step performance engineering journey that reduces the processing time of a 1 billion‑line, 13 GB text file from 105 seconds to 3.4 seconds in Go by applying custom parsing, bulk I/O, a hand‑rolled hash table, and parallelism.

1BRCOptimizationhash-table
0 likes · 15 min read
How to Process a 1‑Billion‑Row Text File in Go 30× Faster (3.4 s)
Go Development Architecture Practice
Go Development Architecture Practice
Mar 21, 2024 · Backend Development

How to Process One Billion Rows in Go: 9 Optimized Solutions Under 4 Seconds

This article walks through nine Go‑based implementations for the 1‑Billion‑Row Challenge, starting from a straightforward scanner approach and progressively applying map pointer values, custom parsing, integer arithmetic, buffer tweaks, custom hash tables, and parallelism to shrink processing time from 1 minute 45 seconds to under 4 seconds.

1BRCGobenchmark
0 likes · 22 min read
How to Process One Billion Rows in Go: 9 Optimized Solutions Under 4 Seconds
Go Development Architecture Practice
Go Development Architecture Practice
Mar 14, 2024 · Backend Development

How to Process One Billion CSV Rows in Go: 9 Optimized Solutions

This article walks through nine progressively faster Go implementations for the One Billion Row Challenge, detailing baseline measurements, map optimizations, custom parsing, integer arithmetic, scanner removal, custom hash tables, and parallel processing that ultimately reduce processing time from 1 minute 45 seconds to under 4 seconds.

1BRCOptimizationconcurrency
0 likes · 20 min read
How to Process One Billion CSV Rows in Go: 9 Optimized Solutions
Open Source Tech Hub
Open Source Tech Hub
Mar 12, 2024 · Backend Development

How I Cut a 1‑Billion‑Row PHP Parser from 25 Minutes to 27 Seconds

This article walks through a step‑by‑step performance engineering journey for the 1 billion‑row challenge in PHP, starting with a naïve CSV parser, replacing fgetcsv with fgets, applying reference operators, type casting, enabling JIT, and finally using multithreaded parallel processing to shrink runtime from 25 minutes to under 30 seconds.

1BRCJITOptimization
0 likes · 13 min read
How I Cut a 1‑Billion‑Row PHP Parser from 25 Minutes to 27 Seconds