Overview
Syllabus
Intro
Writing and reading to the off-heap memory
Getting the global Arena, and creating an auto Arena
Creating and closing shared and confined Arenas
Using Arenas to allocate Memory Segments
Creating heap Memory Segments on arrays or by slicing other Memory Segments
Creating Memory Layouts
Aligning primitive elements with padding
Creating VarHandles from MemoryLayouts
Writing and reading data using arenas, memory segments, and var handles
Writing and reading arrays using specific var handles
Avoiding boxing and un boxing with VarHandles and exact invocation
Mapping files to off-heap memory segments
Creating the test file with 1 billion rows
Reading the data from the test file with the Stream API
Running the final benchmark and getting the result
That's it for today, talk to you soon!
Taught by
Java