Struct-Like Performance in Java
summary
Covers ObjectLayout (objectlayout.org) — an API that brings C-style struct performance patterns (prefetching and caching) to Java without changing the language or JVM, and explains its design and how using JVM intrinsics could further speed up code by modifying the JVM to recognize and optimize the API.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:33ObjectLayout Project Focus
- 7:00ObjectLayout Origin ObjectLayout started with a simple argume - "We need structs in Java..."
- 8:51Where speed comes fron Clayout speed benefits are dominated by - Dead reckoning - Streaming for arrays of structs
- 9:18Data Grouping In C
- 9:50Dead Reckoning In C struct *sq = malloc sizeof Struct
- 11:33Streaming Arrays In C
- 12:34Data Grouping In Java
- 13:12Arrays In Java
- 15:45Array Semantics: Structs
- 16:57org.ObjectLayout Target . The common C-style constructs we seekt - array of structs
- 25:27Context-Based Construction
- 28:12StructuredArray Liveness
- 30:30Benefits Of Liveness Approach . StructuredArray is just a collection of Objects - No special behavior acts like any other collection - Happens to be fast on JDKs that optimize it
- 35:18Optimized JDK implementation
- 39:09Encapsulated Struct In C
- 39:29Struct-In-Struct Intrinisic
- 41:43Struct With Array At The End
- 42:02ObjectLayout Forms Are Composable
- 42:54Status
- 44:20Summary








