Getting the stack trace versus throwing an Exception. What is common and what is different
Motivation At the first glance these two things (e.g. getting the stack traces and throwing an exception) might seem very unrelated, however, they are quite similar up to a…
Compact Strings feature might slow down predominant UTF-16 Strings applications
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 are predominant UTF-16. Context As…
onSpinWait() method from Thread class
Introduction The purpose of this article is to describe new method onSpinWait() added to Thread class in JDK 9, including its usage, the pros and cons and also covering few…
Boost your technical knowledge by effectively watching presentations
Motivation We are living in a world of events and conferences on diverse topics, targeted for different people with diverse technical background and skills. The amount of ideas and approaches…
Loop invariant code motion pitfall in JDK10
Current article illustrates a corner case in regards to loop invariant code motion optimization in JDK10, which at first glance seems to regress in comparison to JDK9. Such optimization tries…
Parallel streams behave sequentially up to a certain extent
In this post, I would like to spotlight a bit of the internal behavior of parallel streams in Java, a feature added in JDK 8. I will start from the…
Variable vs Fixed Parameters Method Call
In this article I would like to reveal the differences and what happens under the hood between a variable parameters method and the same version but with fixed number of…
Optional API vs Explicit Null Check Race
In the current article I propose to analyze what happens and how it behaves, from a performance standpoint, in case of using the Optional API feature added in JDK 8…
Shared Variable Optimization Within A Loop
Recently I attended GeeCon Krakow conference and during one of the talks the famous Venkat Subramaniam shared an interesting small application which captured my attention and got stuck in my mind.…
The Art of Crafting Architectural Diagrams
According to the licensing policy, I would like to mention this article was originally published on InfoQ. Key Takeaways Designing architectural diagrams might not be an easy task; it can be…