Final - In Search of Performance
summary
The talk examines how the Java keyword "final" can be leveraged for performance. It explains JVM optimizations and compilation techniques (bytecode and native code) that use final/immutability information, and reviews recent OpenJDK changes that improve performance.
AI-written summary · about
chapters (14)
- 0:00Performance and final
- 3:37Final in classes/methods
- 7:13Final on virtual methods
- 17:16Final in arguments/locals
- 21:36Final in static fields
- 24:51Final in instance fields
- 28:32Final field limits in JVM
- 30:00Experimental final-fields flag
- 33:36Escape analysis and allocation
- 34:43@Stable annotation and arrays
- 37:15Final impact on constructs
- 39:48String initialization with final
- 41:14Constructor DI vs final
- 43:22Recommendations and summary
related talks
46mFrom Final to Immutable: The not-so-final word on `final`
37mTruly Final Fields
59mAn Introduction to JVM Performance
41mAn Introduction to JVM Performance
18mFinalizers - The not so good, the bad and the ugly
55mThe Performance Engineer's Guide To Java HotSpot
48mJava 9 Performance
59mMyths and Facts about Slow Java
