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…
onSpinWait() method from Thread class
Content Introduction Usage Other Alternatives Benchmark Might not be available for all architectures! Introduction The purpose of this article is to describe new method onSpinWait() added to Thread class in…
Boost your technical knowledge by effectively watching presentations
Content Motivation Guidelines Preparation During the Presentation After the Presentation Motivation We are living in a world of events and conferences on diverse topics, targeted for different people with diverse…
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…
Parallel streams behave sequentially up to a certain extent
Content Introduction Benchmark Under the Hood The NQ Model Further Reading Introduction In this post, I would like to spotlight a bit of the internal behavior of parallel streams in…
Variable vs Fixed Parameters Method Call
Content Introduction Benchmark Under the Hood Practical Advice Introduction In this article I would like to reveal the differences and what happens under the hood between a variable parameters method…
Optional API vs Explicit Null Check Race
Content Introduction Setup Benchmark ifComparison Under the Hood optionalChain Under the Hood Conclusion Introduction In the current article I propose to analyze what happens and how it behaves, from a…
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…
The Art of Crafting Architectural Diagrams
Content Key Takeaways Current pitfalls when designing architectural diagrams Guidelines to follow when creating architectural diagrams Does the Architectural Description Language (e.g. UML, ArchiMate, etc.) make a difference? How can…