Uploaded January 2026 | Updated November 2026, 2 days ago
In this JEP Café episode, we take on the well-known '1 Billion Rows Challenge' and implement it using the standard Memory API introduced in JDK 22. The goal of this implementation is not to break any speed records, but to show you how one can process binary data using standard patterns offered by the JDK, in a clean and efficient way.
You will see how the different elements of the Memory API are working together. First, you will see which Arena implementation to choose from, among the four given to you by the API. Then you will create Memory Segments to map your multi gigabytes file in the off-heap memory. And then, you will define MemoryLayouts to describe their content in a structured way. Lastly, you will use VarHandles and parallel streams to access and process this data. You see how fast you can go with these clean and standard patterns, that you can use in your own application.
Come to *JavaOne 2026* in Redwood City, March 17th-19th, and get *50$ off with code J12026YTLFV* : oracle.com/javaone
You can watch all the episodes on the JEP Café series here: youtube.com/playlist?list=PLX8CzqL3ArzV4BpOzLanxd4bZr46x5e87
00:00 Intro
02:55 Writing and reading to the off-heap memory
05:30 Getting the global Arena, and creating an auto Arena
09:36 Creating and closing shared and confined Arenas
11:06 Using Arenas to allocate Memory Segments
11:50 Creating heap Memory Segments on arrays or by slicing other Memory Segments
12:59 Creating Memory Layouts
14:23 Aligning primitive elements with padding
16:53 Creating VarHandles from MemoryLayouts
18:58 Writing and reading data using arenas, memory segments, and var handles
19:49 Writing and reading arrays using specific var handles
21:36 Avoiding boxing and un boxing with VarHandles and exact invocation
23:09 Mapping files to off-heap memory segments
24:59 Creating the test file with 1 billion rows
25:38 Reading the data from the test file with the Stream API
29:08 Running the final benchmark and getting the result
31:10 That's it for today, talk to you soon!
⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯
◦ Gunnar Morling initial blog post ➱ https://www.morling.dev/blog/one-billion-row-challenge/
◦ 1BRC - The results are in by Gunnar Morling ➱ https://www.morling.dev/blog/1brc-results-are-in/
◦ 1 billion row challenge GitHub repo ➱ github.com/gunnarmorling/1brc
◦ JEP 454: Foreign Function & Memory API ➱ openjdk.org/jeps/454
◦ Dev.java ➱ https://dev.java
◦ Inside.java ➱ https://inside.java
◦ JDK 25 ➱ openjdk.org/projects/jdk/25
◦ JDK 26 ➱ openjdk.org/projects/jdk/25
◦ OpenJDK ➱ openjdk.org
◦ Oracle Java ➱ oracle.com/java
In this JEP Café episode, we take on the well-known '1 Billion Rows Challenge' and implement it using the standard Memory API introduced in JDK 22. The goal of this implementation is not to break any speed records, but to show you how one can process binary data using standard patterns offered by the JDK, in a clean and efficient way.
You will see how the different elements of the Memory API are working together. First, you will see which Arena implementation to choose from, among the four given to you by the API. Then you will create Memory Segments to map your multi gigabytes file in the off-heap memory. And then, you will define MemoryLayouts to describe their content in a structured way. Lastly, you will use VarHandles and parallel streams to access and process this data. You see how fast you can go with these clean and standard patterns, that you can use in your own application.
Come to *JavaOne 2026* in Redwood City, March 17th-19th, and get *50$ off with code J12026YTLFV* : oracle.com/javaone
You can watch all the episodes on the JEP Café series here: youtube.com/playlist?list=PLX8CzqL3ArzV4BpOzLanxd4bZr46x5e87
00:00 Intro
02:55 Writing and reading to the off-heap memory
05:30 Getting the global Arena, and creating an auto Arena
09:36 Creating and closing shared and confined Arenas
11:06 Using Arenas to allocate Memory Segments
11:50 Creating heap Memory Segments on arrays or by slicing other Memory Segments
12:59 Creating Memory Layouts
14:23 Aligning primitive elements with padding
16:53 Creating VarHandles from MemoryLayouts
18:58 Writing and reading data using arenas, memory segments, and var handles
19:49 Writing and reading arrays using specific var handles
21:36 Avoiding boxing and un boxing with VarHandles and exact invocation
23:09 Mapping files to off-heap memory segments
24:59 Creating the test file with 1 billion rows
25:38 Reading the data from the test file with the Stream API
29:08 Running the final benchmark and getting the result
31:10 That's it for today, talk to you soon!
⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯
◦ Gunnar Morling initial blog post ➱ https://www.morling.dev/blog/one-billion-row-challenge/
◦ 1BRC - The results are in by Gunnar Morling ➱ https://www.morling.dev/blog/1brc-results-are-in/
◦ 1 billion row challenge GitHub repo ➱ github.com/gunnarmorling/1brc
◦ JEP 454: Foreign Function & Memory API ➱ openjdk.org/jeps/454
◦ Dev.java ➱ https://dev.java
◦ Inside.java ➱ https://inside.java
◦ JDK 25 ➱ openjdk.org/projects/jdk/25
◦ JDK 26 ➱ openjdk.org/projects/jdk/25
◦ OpenJDK ➱ openjdk.org
◦ Oracle Java ➱ oracle.com/java










![Unboxing Java 26 for Developers - Inside Java Newscast #108
Java 26 is getting all packaged up to be shipped worldwide! As with every release of the JDK, there are a number of new features, improvements, changes in behavior, and more that developers should be aware of before upgrading. In this episode of the Inside Java Newscast, we will review all the noteworthy changes coming in Java 26 that will impact developers.
Come to *JavaOne 2026* in Redwood City, March 17th-19th, and get $200 off with code J12026YTLFV: https://www.oracle.com/javaone/
Or join our *live streams* :
* March 17th, 1600 UTC: Java for an AI World - https://www.youtube.com/watch?v=3fLCOqpIfI0
* March 18th, 1600 UTC: Java Next - https://www.youtube.com/watch?v=AaZIlgBVttI
* March 19th, 1600 UTC: Java Together… The Power of You - https://www.youtube.com/watch?v=skc-nIFS-hs
~~~~Resources~~~~
Java 26 for DevOps: https://inside.java/2026/03/02/jdk-26-rn-ops/
HTTP Client Updates in Java 26: https://inside.java/2026/03/04/jdk-26-http-client/
JDK Enhancement Proposals (JEPs):
- JEP 500 - Prepare to Make Final Mean Final - https://openjdk.org/jeps/500
- JEP 504 - Remove the Applet API - https://openjdk.org/jeps/504
- JEP 516 - Ahead-of-Time Object Caching with Any GC - https://openjdk.org/jeps/516
- JEP 517 - HTTP/3 for the HTTP Client API - https://openjdk.org/jeps/517
- JEP 522 - G1 GC: Improve Throughput by Reducing Synchronization - https://openjdk.org/jeps/522
- JEP 524 - PEM Encodings of Cryptographic Objects (Second Preview) - https://openjdk.org/jeps/524
- JEP 525 - Structured Concurrency (Sixth Preview) - https://openjdk.org/jeps/525
- JEP 526 - Lazy Constants (Second Preview) - https://openjdk.org/jeps/526
- JEP 529 - Vector API (Eleventh Incubator) - https://openjdk.org/jeps/529
- JEP 530 - Primitive Types in Patterns, instanceof, and switch (Fourth Preview) - https://openjdk.org/jeps/530
JDK Bug Systems (JBS) Tickets:
- JDK-8371470 - Java Launcher does not fail when running compact java-file with private no-arg constructor - https://bugs.openjdk.org/browse/JDK-8371470
- JDK-8346944 - Update Unicode Data Files to 17.0.0 - https://bugs.openjdk.org/browse/JDK-8346944
- JDK-8354548 - Update CLDR to Version 48.0 - https://bugs.openjdk.org/browse/JDK-8354548
- JDK-8364361 - [process] java.lang.Process should implement Closeable - https://bugs.openjdk.org/browse/JDK-8364361
- JDK-8369432 - Add Support for JDBC 4.5 MR - https://bugs.openjdk.org/browse/JDK-8369432
- JDK-8363972 - Lenient parsing of minus sign pattern in DecimalFormat/CompactNumberFormat - https://bugs.openjdk.org/browse/JDK-8363972
- JDK-8342705 - Add dark mode for docs - https://bugs.openjdk.org/browse/JDK-8342705
- JDK-8356557 - Update CodeSource::implies API documentation and deprecate java.net.SocketPermission class for removal - https://bugs.openjdk.org/browse/JDK-8356557
- JDK-8366577 - Deprecate java.net.Socket::setPerformancePreferences - https://bugs.openjdk.org/browse/JDK-8366577
- JDK-8277585 - Remove the terminally deprecated finalize() method from javax.imageio.stream APIs - https://bugs.openjdk.org/browse/JDK-8277585
- JDK-8368226 - Remove Thread.stop - https://bugs.openjdk.org/browse/JDK-8368226
- JDK-8366575 - Remove SDP support - https://bugs.openjdk.org/browse/JDK-8366575
- JDK-8366911 - (fs) Remove support for normalizing file names to Unicode normalized form D (macOS) - https://bugs.openjdk.org/browse/JDK-8366911
- JDK-8351413 - Remove XML interchange in java.management/javax/management/modelmbean/DescriptorSupport - https://bugs.openjdk.org/browse/JDK-8351413
- JDK-8359760 - Remove the jdk.jsobject module - https://bugs.openjdk.org/browse/JDK-8359760
- JDK-8357653 - Inner classes of type parameters emitted as raw types in signatures - https://bugs.openjdk.org/browse/JDK-8357653
- JDK-8370387 - Remove handling of InterruptedIOException from java.io classes - https://bugs.openjdk.org/browse/JDK-8370387
- JDK-8361614 - Missing sub-int value validation in the Class-File API - https://bugs.openjdk.org/browse/JDK-8361614
- JDK-8361635 - Missing List length validation in the Class-File API - https://bugs.openjdk.org/browse/JDK-8361635
- JDK-8362637 - Convert java.nio.ByteOrder to an enum - https://bugs.openjdk.org/browse/JDK-8362637
- JDK-8362448 - Make use of the Double.toString(double) algorithm in java.text.DecimalFormat - https://bugs.openjdk.org/browse/JDK-8362448
- JDK-8268406 - Deallocate jmethodID native memory - https://bugs.openjdk.org/browse/JDK-8268406
- JDK-8369517 - Compilation mismatch for equivalent lambda and method reference - https://bugs.openjdk.org/browse/JDK-8369517
- JDK-8347831 - Re-examine version check when cross linking - https://bugs.openjdk.org/browse/JDK-8347831
~~~~ Chapters ~~~~
0:00 Intro
0:40 JEP 500
1:38 JEP 516
1:48 JEP 517
2:19 JEP 522
2:25 JEP 504
2:37 JEP 524
2:56 JEP 525
3:19 JEP 526
3:47 JEP 530
3:55 JEP 529
4:25 New Features
6:08 Removed Features
7:27 Deprecated Features
8:00 Notable Issues Resolved
8:21 Other Issues
10:46 Outro
Tags: #Java #Java26 #JDK26 #OpenJDK Unboxing Java 26 for Developers - Inside Java Newscast #108](https://i.ytimg.com/vi/njfzpKH4K2A/mqdefault.jpg)