Java Performance Tuning Course
People from the following companies attended my courses: Enroll Note: At the moment this course is available only for companies, teams, or groups of students. The individual subscription (i.e. single…
Compact Strings feature might slow down predominant UTF-16 Strings applications
Content Motivation Context Microbenchmark Conclusions Motivation Current article aims to reveal how Compact Strings feature added in JDK 9 with JEP 254 behaves in case of applications where the Strings…
Loop invariant code motion pitfall in JDK10
Content Introduction Benchmark What’s Different in JDK 10 JDK9 – rough pseudocode version JDK10 – rough pseudocode version Further Reading Update Introduction Current article illustrates a corner case in regards…
Shared Variable Optimization Within A Loop
Content The Problem Why It Hangs Possible Solutions Solution 1: Disable the JIT Compiler Solution 2: Make canRun Volatile Solution 3: Insert Thread.sleep(0) in the Loop Solution 4: Remove the…