Passing this::method reference within a loop affects performance

Follow @ionutbalosin Motivation The problem I would like address affects the performance in case this::method reference is passed to another method (especially within a long running loop), hence it is important to be aware and avoid this situation. The problem This arises when a lambda or a method reference which capturesContinue reading… Passing this::method reference within a loop affects performance

Parallel streams behave sequentially up to a certain extent

Follow @ionutbalosin 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 source code and then try to explain what really happens in the context of our test example. Basically,Continue reading… Parallel streams behave sequentially up to a certain extent

Variable vs Fixed Parameters Method Call

Follow @ionutbalosin 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 parameters, from a performance standpoint. In regards to that I wrote a small program which tests the responseContinue reading… Variable vs Fixed Parameters Method Call

Shared Variable Optimization Within A Loop

Follow @ionutbalosin 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. Going home, I have decided to zoom into the problem and to better understand what happens under theContinue reading… Shared Variable Optimization Within A Loop

How to Measure Performance in Java Applications

Follow @ionutbalosin Performance is an important criterion every software application might satisfy and each Architect should have in mind when designing and putting in place the Quality Attribute tactics, if this is an important ASR (Architectural Significant Requirement). Sometimes it becomes really hard to tune and improve a mature and complexContinue reading… How to Measure Performance in Java Applications