Several months ago, I wrote an article to compare the performances of short indexes for loops. I wrote that code to achieve my goal : And i found as a result that short was two times slower than int and I was convinced of these results until a week ago. At this time, a reader […]
Java 7 : New I/O features (Asynchronous operations, multicasting, random access) with JSR 203 (NIO.2)
Like I’ve said in other post, we will have a new API to access File System in Java 7, but we’ll have several others new features in NIO.2 that I’ve not covered So I’ll try to cover them in that post. Indeed the JSR 203 (also known as NIO.2) add several new classes that improve […]
Like you know (or perhaps not, nevermind), the Java bytecode doesn’t support dynamic method invocation. There are three supported invocations modes : invokestatic, invokespecial, invokeinterface or invokevirtual. These modes allows to call methods with known signature. We talk of strongly typed language. This allows to to make some checks directly at compile time. On the […]
In Java 7 we’ll see a new API to manipulate file paths. This is part of the NIO.2 API. Instead of using the class java.io.File to manipulate a file of the file system of the computer we will now use the java.nio.file.Path class to manipulate a file in any file system (FileSystem). This FileSystem can […]
After a post I read on a french forum, i asked myself of the performances using shorts as loop indexes for loop with few iterations (less than 32768). At first view, it can be tempting because we save 2 octets, so why use an int instead a short ? But, when we think of that, […]
Page Speed is a Firefox addon who add a new functionality to Firebug enabling the user to evaluate and improve the performances of a web site. In this post, we will see how to use it the make your pages load faster.