About Peter Lawrey
List/Grid Author Archives Subscribe to the RSS feed of Peter Lawrey

Quotes relating to System Design
There are a few quotes I think of when thinking about computer design. These are not specifically about computers, but I think they are appropriate. Perfection is achieved, not when ...

High performance libraries in Java
There is an increasing number of libraries which are described as high performance and have benchmarks to back that claim up. Here is a selection that I am aware of. Disruptor library ...

“Java Sucks” revisited
Overview An interesting document on Java’s short comings (from C developer’s perspective) was written some time ago (about 2000? ) but many of the arguments issues are as ...

Using a memory mapped file for a huge matrix
Overview Matrices can be really large, sometimes larger than you can hold in one array. You can extend the maximum size by having multiple arrays however this can make your heap size ...

Recycling objects to improve performance
Overview In a previous article I stated that the reason the deserialization of objects was faster was due to using recycled objects. This is potentially surprising for two reasons, ...

Java Secret: Loading and unloading static fields
OVERVIEW To start with it is natural to assume that static fields have a special life cycle and live for the life of the application. You could assume that they live is a special place ...

Weird Funny Java!
Sometimes we can do really weird and funny things with Java; Some other times we are just being creative! Take a look at the following three examples and you will find out what I mean! Have ...

The Exchanger and GC-less Java
Overview The Exchanger class is very efficient at passing work between thread and recycling the objects used. AFAIK, It is also one of the least used Concurrency classes. Nevertheless, ...

Double your money again
Overview A long time ago I wrote an article on using double for money. However, it is still a common fear for many developers when the solution is fairly simple. The problem with using ...

C++ or Java, which is faster for high frequency trading?
Overview There are conflicting views as to what is the best solution for high frequency trading. Part of the problem is that what is high frequency trading varies more than you might ...



