How Fast Can You Parse 1 Billion Rows in Java? – Insane Speed Test • Roy van Rijn • GOTO 2025
Jun 3, 2026•Channel
AI Analysis
Data from YouTube Data API v3•Updated Just now
Video Overview
Video Details
Published1 month ago
Duration39:31
Video IDpHZF-zJ3Bpg
Languageen
CategoryScience & Technology
PrivacyPublic
Made for KidsNo
Video TypeRegular Video
Performance Metrics
Views4.3K
Likes134
Comments5
Engagement Rate3.20%
Likes per 100 views3.08
Comments per 1K views1.15
Video Tags
Description
This presentation was recorded at GOTO Copenhagen 2025. #GOTOcon #GOTOcph
https://gotocph.com
Roy van Rijn - Experienced Developer & Architect, Robotics Enthusiast & Hobby Mathematician @royvanrijn
ORIGINAL TALK TITLE
How Fast Can You Parse a File with 1 Billion Rows of Weather Data Using Java?
RESOURCES
https://bsky.app/profile/royvanrijn.com
https://x.com/royvanrijn
https://www.linkedin.com/in/royvanrijn
https://github.com/royvanrijn
https://royvanrijn.com
Links
https://adventofcode.com
https://x.com/gunnarmorling
https://www.morling.dev
https://github.com/thomaswue/1brc-steps
https://github.com/gunnarmorling/1brc/blob/main/README.md#1brc-on-the-web
https://thomaswue.dev
ABSTRACT
Last January a challenge was posted online by Gunnar Morling: How fast can you parse a file with 1 billion rows of weather data using Java?
Little did I know this deceivingly simple question would lead me down a path that taught me all about: parallelism, memory mapped files, SWAR techniques (SIMD as a register), bit twiddling, branchless code, mechanical sympathy, Graal native compilation and finally... I even turned to the dark side: using sun.misc.Unsafe.
Join me in this deep dive where I'll explain all the code changes and tricks that took me from the reference implementation which processes the billion records in 4+ minutes, to processing everything in under 2 seconds.
Who knew Java could be this fast? [...]
TIMECODES
00:00 Intro
01:00 The challenge
04:07 Watch, learn, adopt, experiment
05:35 Which JVM?
07:03 Temperature as integer
08:01 Memory mapped files
09:35 Getting unsafe
11:04 SWAR
14:08 Stringless
14:55 Branchless programming
16:52 Parse the temperature
24:22 Exploit the data
25:22 Mechanical sympathy
26:32 Keeping track
34:59 Remember this?
36:40 Results
37:05 Summary
38:39 Outro
Download slides and read the full abstract here:
https://gotocph.com/2025/sessions/3671
RECOMMENDED BOOKS
Monica Beckwith • JVM Performance Engineering • https://amzn.to/3zuJ7Ig
Scott Oaks • Java Performance • https://amzn.to/4eNhlH4
Trisha Gee, Kathy Sierra & Bert Bates • Head First Java • https://amzn.to/3k59BJ6
Trisha Gee & Kevlin Henney • 97 Things Every Java Programmer Should Know • https://amzn.to/3kiTwJJ
https://twitter.com/GOTOcon
https://www.linkedin.com/company/goto-
https://www.instagram.com/goto_con
https://www.facebook.com/GOTOConferences
#Java #JVM #GraalVM #JavaProgramming #JavaProgrammingTutorial #Parsing #Parallelism #MemoryMappedFiles #SWAR #BitTwiddling #BranchlessCode #MechanicalSympathy #GraalNative #JavaProgramming #AdventOfCode #1BillionRowChallenge #GunnarMorling #RoyvanRijn #TodayInTech #GOTO
CHANNEL MEMBERSHIP BONUS
Join this channel to get early access to videos & other perks:
https://www.youtube.com/channel/UCs_tLP3AiwYKwdUHpltJPuA/join
Looking for a unique learning experience?
Attend the next GOTO conference near you! Get your ticket at https://gotopia.tech
Sign up for updates and specials at https://gotopia.tech/newsletter
SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily.
https://www.youtube.com/user/GotoConferences/?sub_confirmation=1