Tag Archives: autoboxing

Autoboxing Performance

Preface Because of my previous post about autoboxing I get many search queries about autoboxing performance. Now I’m curious, too. So let’s get ready for some benchmarks. When we talk about boxing performance, then we always have two sides. Throughput … Continue reading

Posted in Java, Performance | Tagged , , , , | 2 Comments

The size does matter! (partly)

Have you ever asked yourself, what memory size does an object or a primitive data type really uses? In general it uses a multiple of WORD. http://en.wikipedia.org/wiki/Word_%28computing%29 That means a multiple of 4 byte (32bit) or 8 byte (64bit), if … Continue reading

Posted in Java, Performance | Tagged , , , | Leave a comment

Autoboxing: Traps and Advantages

What is ‘autoboxing’ some people might ask? Autoboxing is a feature, which was added in Java 5. Autoboxing is the automatic conversion of primitive data types like int, double, long, boolean to its wrapper Object Integer, Double… and vice versa. … Continue reading

Posted in common practice, Java, Performance, Uncategorized | Tagged , , , , | 2 Comments