Tag: inlining

Profiling in Production

If you ever had some serious issues with a performance of your Java application, most probably you know how valuable thread profiling can be. But do you know which profiler you should use? There are two basic techniques used by profilers – sampling and instrumentation. Sampling Profilers A sampling profiler involves periodically asking…

When Short Methods Pay Off: JIT Inlining

Among all Just-In-Time Java compiler optimizations, inlining methods is one of the most powerful one. When we usually write code following good object-oriented practices, we end up having lots of small objects with well-encapsulated attributes – most of the them accessible via getters. There is an overhead of making additional calls and increasing a callstack….