Skip to content

Latest commit

 

History

History
70 lines (40 loc) · 4.88 KB

README.adoc

File metadata and controls

70 lines (40 loc) · 4.88 KB

Java Articles, by Per Minborg

About Me

I am a Java Core Library developer at Oracle and here are some of my articles about the inner workings of Java. The views on this blog are my own and are not necessarily the ones of Oracle, Inc.

Happy Reading! /Per Minborg

Golden Gate

Articles 2023

How data is distributed in Gunnar Morling’s "One Billion Row Challenge". Know your data and get better performance.

Articles 2023

Presentations at Devoxx BE October 2023

I did two presentations at Devoxx and also participated in the "Ask the Java Architects" presentation.

The Architects

Here are the videos of the presentations:

Ask the Java Architects By Sharat Chander, Alan Bateman, Stuart Marks, Viktor Klang, Brian Goetz, and Per Minborg

Here is the code I used in my presentations:

Thanks to all who provided feedback and those who attended the presentations. See you next year!

Did you know Java records are trusted by the Hotspot VM in a special way? This makes their speed superior in some aspects compared to regular Java classes. In this short article, we will take a look at constant folding of instance fields and how this can bolster the performance of your Java application.

The Panama Foreign Function and Memory (FFM) API is slated to be finalized in Java 22 and will then be a part of the public Java API. One thing that is perhaps less known is the significant performance improvements made by FFM in certain areas in 22. In this short article we will be looking at benchmarking string conversion in FFM for Java 21 and Java 22 compared to using old JNI calls.

The draft JEP "Computed Constants" went public. ComputedConstant objects are superfast immutable value holders that can be initialized independently of when they are created. As an added benefit, these objects may in the future be even more optimized via "condensers" that eventually might become available through project Leyden.

In a previous article, I talked about how serialization and file I/O performance was improved in Java 21 thanks to the use of VarHandle constructs. The method employed there has now also been applied to Java’s image-handling library making it faster. Here is what happened.

The Panama FFM API previewed for a second time in JDK 20. In this article, we will see how to make use of the new APIs and how to call native functions in a native library. This article summarized key points made at jFocus 2023 in Stockholm.

_In Java 21, old code might run significantly faster due to recent internal performance optimizations made in the Java Core Libraries. In this article, we will take a closer look at some of these changes and see how much faster your favorite programming language has become. Buckle up, for we are about to run at full speed!

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation.